获取深度数据
GET
/az/spot/public/depth
限流规则
10/s/ip
请求参数
| 参数 | 类型 | 是否必须 | 默认值 | 描述 | 取值范围 |
|---|---|---|---|---|---|
| symbol | string | true | 交易对 eg:btc_usdt | ||
| limit | number | false | 50 | 有效最小100条(服务端对小于100的向上取100) | 1~1000 |
Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"symbol": "btc_usdt", //交易对
"timestamp": 1662445330524, //时间戳
"lastUpdateId": 137333589606963580, //最后更新记录
"bids": [ //买盘([?][0]=价位;[?][1]=挂单量)
[
"200.0000", //价位
"0.996000" //挂单量
],
[
"100.0000",
"0.001000"
],
[
"20.0000",
"10.000000"
]
],
"asks": [] //卖盘([?][0]=价位;[?][1]=挂单量)
}
}