ticker#
WS wss://api.pro.anboto.xyz/api/v2/ws
Best bid/offer stream per symbol; subscribe with {"topic":"ticker","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 requiredtickerexchange string requiredTrading exchange, case-insensitive
method enum requiredsubscribe / unsubscribeUpdate message fields#
symbol stringexchange stringassetClass stringbid numberask numberbidQty numberaskQty numbertimestamp integerResponses#
| code 0 | Acknowledgment of successful subscription |
| code ≠ 0 | Error response for failed subscription — see Errors |
Update ticker
{
"symbol": "string",
"exchange": "string",
"assetClass": "string",
"bid": 0.0,
"ask": 0.0,
"bidQty": 0.0,
"askQty": 0.0,
"timestamp": 0
}
Ack code 0
{
"code": 0,
"message": "string"
}