Skip to main content

Order book depth

Subscribe

{
"method": "sub.depth",
"param": {
"symbol": "BTC_USDT"
}
}

Unsubscribe

{
"method": "unsub.depth",
"param": {
"symbol": "BTC_USDT"
}
}

Receive depth data for a specific contract; after subscribing, updates are pushed every 200 ms.

Response Parameters

FieldTypeDescription
symbolstringContract
asksList<Numeric[]>Ask depth
bidsList<Numeric[]>Bid depth
versionlongVersion
beginlongStart version
endlongEnd version
ctsnumberThe timestamp from The matching engine when this orderbook data is produced
tslongSystem timestamp

Note: [411.8, 10, 1] → 411.8 is price,10 is the order numbers of the contract ,1 is the order quantity

Sample data

{
"symbol": "BTC_USDT",
"data": {
"cts": 1792381704003,
"asks": [
[
82475.9,
59447,
2
]
],
"bids": [
[
80001.6,
0,
0
],
[
82397.1,
4119,
1
],
[
82371.9,
2002,
1
]
],
"end": 42755765486,
"begin": 42755765480,
"version": 42755765486
},
"channel": "push.depth",
"ts": 1792381704073
}