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 requiredopen_interestexchange string requiredTrading exchange, case-insensitive
method enum requiredsubscribe / unsubscribeUpdate message fields#
symbol stringexchange stringassetClass stringopenInterest numbercontracts/base units as reported by the exchange
openInterestValue numberquote currency value when available
timestamp integerResponses#
| 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"
}