有限档位深度信息
推送有限档深度信息,levels 表示几档买卖单信息, 可选 5/10/20 档。
request:
{
"method": "SUBSCRIPTION",
"params": [
"[email protected]@BTCUSDT@5"
]
}
response:
{
"channel": "[email protected]@BTCUSDT@5",
"publiclimitdepths": {
"asksList": [ //asks:卖单
{
"price": "93180.18", //变动的价格档位
"quantity": "0.21976424" //数量
}
],
"bidsList": [ //bids:买单
{
"price": "93179.98",
"quantity": "2.82651000"
}
],
"eventtype": "[email protected]", //事件类型
"version": "36913565463" //版本号
},
"symbol": "BTCUSDT", //交易对
"sendtime": 1736411838730 //事件时间
}
请求参数: [email protected]@<symbol>@<level>
返回参数:
| 参数名 | 数据类型 | 说明 |
|---|---|---|
| price | string | 变动的价格档位 |
| quantity | string | 数量 |
| eventtype | string | 事件类型 |
| version | string | 版本号 |
| symbol | string | 交易对 |
| sendtime | long | 事件时间 |