Bookticker
Best bid price and best ask price
Push frequency: 100ms
Topic: bookticker.{symbol}
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| topic | string | Topic name |
| ts | number | The timestamp (ms) that message is sent out |
| type | string | Data type. snapshot |
| data | array | Object |
| > s | string | Trading pair |
| > bp | string | Best bid price |
| > bq | string | Bid quantity |
| > ap | string | Best ask price |
| > aq | string | Ask quantity |
| > t | number | The 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
}
}