Skip to main content

Bookticker

Best bid price and best ask price

Push frequency: 100ms

Topic: bookticker.{symbol}

Response Parameters

ParameterTypeComments
topicstringTopic name
tsnumberThe timestamp (ms) that message is sent out
typestringData type. snapshot
dataarrayObject
> sstringTrading pair
> bpstringBest bid price
> bqstringBid quantity
> apstringBest ask price
> aqstringAsk quantity
> tnumberThe timestamp (ms) that system generates the data

Subscribe Example

{
"req_id": "bookticker00001", //optional
"op": "subscribe",
"args": [
"bookticker.BTCUSDT"
]
}

Stream Example

{
"topic": "bookticker.BTCUSDT",
"ts": 1673437259336,
"type": "snapshot",
"data": {
"s": "BTCUSDT",
"bp": "17440",
"bq": "0.0002",
"ap": "17440.01",
"aq": "0.21302",
"t": 1673437259336
}
}