Skip to main content

Open Interest

Real-time futures open interest (OI) stream. Subscribe to {symbol}@{exchange} pairs and receive every update the collector observes. Futures only — spot does not have open interest.

Connect

websocat wss://api.datamaxiplus.com/ws/v1/open-interest -H 'X-DTMX-APIKEY: $YOUR_API_KEY'

Subscribe

params is a list of {symbol}@{exchange} entries. symbol is the exchange's native API symbol (e.g. Bybit's BTC-USDT). Invalid pairs are silently dropped; the ack returns only those that passed validation.

{ "method": "SUBSCRIBE", "params": [ string ], "id": int32 }

Response

Each update is an open interest snapshot for a single pair. protojson-encoded — keys use the short JSON names from the protobuf schema.

FieldDescription
idTokenId — internal unified token id
eExchange — e.g. bybit
dTimestamp — exchange-reported time (ms, UTC)
sSymbol — exchange-native API symbol
bBase — e.g. BTC
qQuote — e.g. USDT
oiOpenInterest — open interest in base asset units
oiusdOpenInterestUsd — USD-converted open interest (omitted if no price available)

Example

{
"id": "bitcoin",
"e": "bybit",
"d": 1776826789123,
"s": "BTC-USDT",
"b": "BTC",
"q": "USDT",
"oi": 98432.5,
"oiusd": 7500123456.7
}

Ping / Keepalive

Send {"method":"PING"} periodically to keep the connection alive.

Pricing

Each subscribe request is billed 1 credit regardless of how many pairs are in params. The connection itself is free.