跳到主要内容

深度-指定最小金额单位

订阅

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

备注: 10 表示以 10 为金额的最小比例单位,如 100010,100020,100030 拆分深度数据

取消订阅

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

数据示例

{
"channel": "push.depth.step",
"data": {
"askMarketLevelPrice": 111089.4,
"asks": [
[111090, 398676, 26],
[111100, 410175, 8]
],
"bidMarketLevelPrice": 111085.5,
"bids": [
[111080, 461204, 35],
[111070, 386809, 3]
],
"ct": 1760950364388,
"version": 27883254360
},
"symbol": "BTC_USDT"
}

获取指定最小金额单位合约的深度数据推送,订阅后 200ms 发送一次

响应参数:

参数名类型说明
asksList<Numeric[]>卖方深度
bidsList<Numeric[]>买方深度
askMarketLevelPricedecimal愿意卖出的最高价
bidMarketLevelPricedecimal愿意买入的最高价
versionlong版本号

备注: [111090,398676,26] 111090 为价格,398676 为此价格的合约张数,26 为订单数量