Skip to main content
Open interest is the total size of outstanding contracts, plus the mark, oracle, and mid prices that move with it. Hyperliquid core, HIP-3, HIP-4, and Lighter serve open interest; Spot does not.

Get open interest

curl "https://api.0xarchive.io/v1/hyperliquid/openinterest/BTC/current" \
  -H "X-API-Key: $OXARCHIVE_API_KEY"
/current is the snapshot; /v1/hyperliquid/openinterest/{symbol} paginates history.

Request parameters

ParameterInTypeRequiredDescription
symbolpathstringYesTrading pair symbol, e.g. BTC
startqueryinteger (ms)NoStart time, Unix ms. Defaults to 24h ago
endqueryinteger (ms)NoEnd time, Unix ms. Defaults to now
intervalquerystringNoAggregation interval; omit for raw ~1 min resolution
limitqueryintegerNoMax results. Default 100, max 1000
cursorqueryintegerNoPagination cursor
{
  "success": true,
  "data": {
    "coin": "BTC", "symbol": "BTC", "timestamp": "2026-06-05T16:44:24.247Z",
    "open_interest": "33091.28243", "mark_price": "60803", "oracle_price": "60830", "mid_price": "60785.5",
    "day_ntl_volume": "6499523469.57", "prev_day_price": "63741", "impact_bid_price": "60781", "impact_ask_price": "60790"
  },
  "meta": { "request_id": "req_5c2e9a14f7b03d68" }
}

Response fields

FieldTypeDescription
symbolstringTrading pair symbol (coin is a deprecated alias)
timestampstringSnapshot time (UTC)
open_intereststringTotal open interest in contracts
mark_pricestringMark price (drives PnL and liquidations)
oracle_pricestringOracle price from the external feed
mid_pricestringCurrent mid price
day_ntl_volumestring24-hour notional volume
prev_day_pricestringPrice 24 hours ago
impact_bid_pricestringImpact bid price used for liquidations
impact_ask_pricestringImpact ask price used for liquidations
All values are decimal strings. mark_price, oracle_price, and mid_price are three distinct prices: mark drives PnL and liquidations, oracle is the funding and liquidation reference, mid is the book midpoint.

Stream it live

Open interest streams on Hyperliquid core (open_interest), HIP-4 (hip4_open_interest), and Lighter (lighter_open_interest). HIP-3 open interest is REST-only, and Spot has no open interest.
ws.send(JSON.stringify({ op: "subscribe", channel: "open_interest", symbol: "BTC" }));
Connection and reconnect handling live in the WebSocket tab; see WebSocket Channels for the family matrix.

Export in bulk

For an open-interest history as files, use the oi export schema ($1/GB, $5 minimum), delivered as Parquet with ZSTD compression. Build a selection in the Data Catalog; columns and coverage keys are on Export Schemas.

Next

Use Funding for the funding rate, Candles for price series, or Order books for live depth.
Last modified on June 8, 2026