# EOD OI

**Tier:** Pro

`GET /hip4-analytics/oi-eod`

End-of-day two-sided HIP-4 trading open interest — shares and USD values, with settlement legs excluded. Returns daily OI snapshots that can be filtered by outcome ID or scoped to a minimum date. Use it to track how overall prediction market positioning has evolved, or chart OI for a specific outcome.

---

## Authentication

Requires Pro tier or higher. Free and Dev tiers do not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `by_outcome` | string | No | Set to `1` or `true` for per-outcome rows. |
| `outcome_id` | integer | No | Filter to a specific outcome market. |
| `start` | string (ISO 8601 or YYYY-MM-DD) | No | Earliest date to include. Legacy `min_day` remains supported as a compatibility alias. |
| `venue` | string | No | Restrict open interest to one stored HIP-4 venue: `out` for Outcome.xyz or `skew` for Skew Markets. Omit it for all deployers. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip4-analytics/oi-eod?start=2026-06-01&venue=skew"
```

## Example response

```json
{
  "success": true,
  "start": "2026-06-01",
  "data": [
    { "day": "2026-06-01", "oi_usd": 12400000, "oi_shares": 84200 },
    { "day": "2026-06-02", "oi_usd": 13200000, "oi_shares": 89800 }
  ],
  "default_min_day": "2026-01-01"
}
```

## Errors

- `400` — Invalid start or venue value.
- `403` — Your tier does not have access. Upgrade to Pro.

## Related

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