# Outcome Metadata

**Tier:** Dev

`GET /hip4-analytics/outcome-meta`

Merged metadata for all HIP-4 outcome markets — live outcomes from Hyperliquid's API combined with archived markets stored in the Loris database. It includes outcome-to-deployer attribution and the deployer registry used to resolve venue slugs such as `out` (Outcome.xyz) and `skew` (Skew Markets). `liveOutcomeIds` identifies rows present in the latest live response; it is omitted when Hyperliquid's metadata fetch fails.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403). The Loris website calls this endpoint server-side for trade page and HIP-4 UI population.

## Parameters

| Parameter | Default | Meaning |
|-----------|---------|---------|
| `scope` | `all` | `all` merges live and archived markets. `live` returns only the latest live snapshot and its questions, shared across requests for 30 seconds. Live requests do not read or update the archive; during an upstream outage they can return the last cached live snapshot. |

## Attribution fields

| Field | Meaning |
|------|---------|
| `outcomes[].venue` | Stable stored venue slug used by the `venue` filter on dashboard, leaderboard, and OI endpoints. Known deployers include `out` for Outcome.xyz and `skew` for Skew Markets. |
| `outcomes[].deployer` | Normalized deployer address attributed to the outcome. |
| `outcomes[].deployerFeeScale` | Deployer fee scale supplied by outcome metadata when available. |
| `deployers` | Current deployer-address-to-venue registry. When the live metadata request is unavailable, archived registry entries can be reconstructed from stored outcomes. |
| `liveOutcomeIds` | Outcome IDs present in the latest successful Hyperliquid response. Omitted when live metadata could not be fetched. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/hip4-analytics/outcome-meta
```

## Example response

```json
{
  "outcomes": [
    {
      "outcome": 1209,
      "name": "template:priceTouch",
      "description": "perp:HYPE|target:100|time:20261001-0000",
      "sideSpecs": [{ "name": "template:Yes" }, { "name": "template:No" }],
      "quoteToken": "USDC",
      "venue": "out",
      "deployer": "0x0c46eb73fae2816f219fcf11f50d6d3c59b5819e",
      "deployerFeeScale": "1.0"
    }
  ],
  "liveOutcomeIds": [1209],
  "deployers": [
    {
      "deployer": "0x0c46eb73fae2816f219fcf11f50d6d3c59b5819e",
      "venue": "out"
    }
  ]
}
```

## Errors

- `400` — Invalid `scope`; use `all` or `live`.
- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [Outcome Detail](/docs/api/hip4-analytics/outcome-detail)
- [Dashboard](/docs/api/hip4-analytics/dashboard)
- [Trader Leaderboard](/docs/api/hip4-analytics/leaderboard)
