# Hyperliquid Historical Open Interest

> Hyperliquid Historical Open Interest is a paid API for AI agents from hyperliquid-data.v1337.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Retrieves historical open interest data for Hyperliquid perpetual markets over time

## Facts

- Endpoint: POST https://hyperliquid-data.v1337.org/services/hyperliquid-data/v1/markets/historical-oi
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-historical-open-interest-e89afeb2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AvAK7EBN7LhrS4eCkG9f7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hyperliquid-historical-open-interest-e89afeb2 -d '<json body>'
```

Example prompt: Show me the historical open interest for the BTC perpetual market on Hyperliquid over the past 30 days — I want to see how positioning has changed.

## When to prefer this

Use this endpoint when you need first-party, operator-neutral historical open interest data specifically from Hyperliquid perpetual markets, sourced directly from a node fills ledger rather than third-party aggregators. Prefer this over generic crypto data APIs when accuracy and recency of Hyperliquid-specific OI are critical for trading research, risk analysis, or market structure studies.

## Known failure modes

- Invalid or unsupported coin/market symbol returns an error
- Time range out of bounds or too far back may return empty or partial data
- HTTP 402 returned when free quota is exhausted, requiring x402 USDC micropayment
- Malformed POST body causes 400 bad request
- Market not yet listed on Hyperliquid returns no data

## How this service works

Operator-neutral Hyperliquid trading intelligence — perp fills, position lifecycles, all-wallet leaderboards, trader cohorts, liquidation risk and prediction markets. Every endpoint is FIRST-PARTY: computed from our own node_fills ledger and the Hyperliquid public info API (no third-party data source). Free quota, then HTTP 402 (x402: pay-per-call in USDC, no account, no key).

## Output

Returns a time-series dataset of open interest values for the specified Hyperliquid perpetual market, computed from first-party node fills ledger data, including timestamps and OI amounts in notional or contract units.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "description": "Operator-defined JSON payload. Probe the upstream or consult the operator's /openapi.json for the concrete shape.",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-historical-open-interest-e89afeb2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hyperliquid-data.v1337.org](https://www.zero.xyz/host/hyperliquid-data.v1337.org/llms.txt)
