Skip to content

open_interest#

WS wss://api.pro.anboto.xyz/api/v2/ws

Open interest stream per symbol; subscribe with {"topic":"open_interest","exchange":...,"symbol":"BTC/USDT","method":"subscribe"}. Market data subscriptions are capped per connection and may be disabled per environment.

Authenticate the connection with a listenKey — see WebSocket.

Subscribe message#

topic string required
open_interest
exchange string required
Trading exchange, case-insensitive
Example: BINANCE
method enum required
subscribe / unsubscribe

Update message fields#

symbol string
exchange string
assetClass string
openInterest number
contracts/base units as reported by the exchange
openInterestValue number
quote currency value when available
timestamp integer

Responses#

code 0 Acknowledgment of successful subscription
code ≠ 0 Error response for failed subscription — see Errors

Update open_interest

{
  "symbol": "string",
  "exchange": "string",
  "assetClass": "string",
  "openInterest": 0.0,
  "openInterestValue": 0.0,
  "timestamp": 0
}

Ack code 0

{
  "code": 0,
  "message": "string"
}