跳到主要内容

获取深度数据

GET: /v1/spot/public/depth

Parameters

参数数据类型是否必须默认值描述取值范围
symbolstringtrue交易对 eg:btc_usdt
limitnumberfalse50数量1~1000

限流规则

1/s/ip

Java
public String depth(){

}
Response
{
"code": 200,
"msg": "SUCCESS",
"msgInfo": [],
"data": {
"timestamp": 1662445330524, //时间戳
"lastUpdateId": 137333589606963580, //最后更新记录
"bids": [ //买盘([?][0]=价位;[?][1]=挂单量)
[
"200.0000", //价位
"0.996000" //挂单量
],
[
"100.0000",
"0.001000"
],
[
"20.0000",
"10.000000"
]
],
"asks": [] //卖盘([?][0]=价位;[?][1]=挂单量)
}
}