Skip to main content

Open Interest

Real-time futures Open Interest stream. Subscribe to any {symbol}@{exchange} pair to receive every update the collector observes. Futures-only (spot Open Interest does not exist).

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-native API symbol (e.g. BTC-USDT on Bybit). Invalid pairs are silently dropped — the ack echoes back only what passed validation.

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

Response

Each update is a full Open Interest snapshot for a single pair. protojson-encoded — keys match the short JSON names from the protobuf schema.

FieldDescription
idTokenId — Internal unified token id
eExchange — e.g. bybit
dTimestamp — Exchange-reported time in ms (UTC)
sSymbol — Exchange-native API symbol
bBase — e.g. BTC
qQuote — e.g. USDT
oiOpenInterest — Open Interest in base units
oiusdOpenInterestUsd — Open Interest in USD (optional, missing if no price)

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 successful subscribe request costs 1 credit regardless of how many pairs are in params. Connection itself is free.