跳到主要内容

深度

订阅

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

取消订阅

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

获取某个合约的深度数据推送,订阅后 200ms 发送一次。

返回参数

参数名类型说明
symbolstring合约
asksList<Numeric[]>卖方深度
bidsList<Numeric[]>买方深度
versionlong版本号
beginlong起始版本号
endlong结束版本号
ctsnumber产生此订单簿数据时来自撮合引擎的时间戳
tslong系统时间戳

备注: [411.8, 10, 1] 411.8 为价格,10 为此价格的合约张数,1 为订单数量

数据示例

{
"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
}