Skip to content

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 required
ticker
exchange string required
Trading exchange, case-insensitive
Example: BINANCE
method enum required
subscribe / unsubscribe

Update message fields#

symbol string
exchange string
assetClass string
bid number
ask number
bidQty number
askQty number
timestamp integer

Responses#

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"
}