l2BookDepth
l2BookDepthMaintain a local fixed-depth book from one snapshot plus deltas (lower bandwidth, you apply updates).
{
"method": "subscribe",
"type": "l2BookDepth",
"subscription": {
"type": "l2BookDepth",
"coin": "4"
}
}Depth and price granularity are fixed server-side.
"l2BookDepth""l2BookDepth"Fixed-depth order book frame, snapshot or delta. prevSeq is always present: null for snapshot frames, the previous frame's seq for delta frames. levels[0] = bids, levels[1] = asks, following the same shape as WsL2BookData.levels. Bids are strictly descending, asks strictly ascending. For Snapshot frames, levels contain the full top-N book (levels with sz == "0" are never included). For Delta frames, levels contain only the price levels that changed this period; sz == "0" means that price level was removed.
Trading pair symbol.
Instrument id.
Sequence number of the previous frame. null on snapshot frames.
Monotonically increasing sequence number of this frame.
Frame timestamp, milliseconds.
Frame type.
"snapshot""delta"{
"channel": "l2BookDepth",
"data": {
"coin": "4",
"id": 0,
"time": 1700000000000,
"seq": 0,
"prevSeq": 0,
"type": "snapshot",
"levels": [
[
{
"px": "0",
"sz": "0",
"n": 0
}
]
]
}
}