WebSocket · Public
Depth Channel
Books5: pushes a 5-level snapshot on the first push, then full data. When depth changes, the system pushes 5 levels of data on every change (each push contains 5 levels). Books15: pushes a 15-level snapshot on the first push, then full data. When depth changes, the system pushes a 15-level snapshot on every change (each push contains 15 levels).
Public channelPush frequency: real-time (on depth change)
Channelbooks15
instTypeSPOT
Data description
- Asks: Sell-side depth, sorted by price from low to high
- Bids: Buy-side depth, sorted by price from high to low
- Each depth item is an array:
[price, quantity, current level order number]
Description
- The first subscription returns full snapshot data
- Subsequent pushes send incremental updates
- Each entry includes: price, quantity and number of orders
Subscribe request
{ "op": "subscribe", "args": [ { "instType": "SPOT", "channel": "books15", "instId": "BTCUSDT" } ]}Push data format
{ "action": "snapshot", "arg": { "instType": "SPOT", "channel": "books15", "instId": "BTCUSDT" }, "data": [ { "asks": [ [ "89203.2", "0.01028" ], [ "89207.7", "0.22756" ] ], "bids": [ [ "89202.2", "0.00800" ], [ "89200.4", "0.12969" ] ], "checksum": 0, "ts": "1768981431857" } ], "ts": 1768981431857}Fields
| Field | Type | Description |
|---|---|---|
| asks | Array | Ask levels, up to 15 |
| bids | Array | Bid levels, up to 15 |
| ts | String | Timestamp (ms) |
| checksum | Integer | Checksum |
