Get depth data
GET: /v1/spot/public/depth
Parameters
Parameter | Type | mandatory | Default | Description | Ranges |
---|---|---|---|---|---|
symbol | string | true | trading pair eg:btc_usdt | ||
limit | number | false | 50 | 1~1000 |
Limit Flow Rules
1/s/ip
Java
public String depth(){
}
Response
{
"code": 200,
"msg": "SUCCESS",
"msgInfo": [],
"data": {
"timestamp": 1662445330524,
"lastUpdateId": 137333589606963580, //Last updated record
"bids": [ //buy order([?][0]=price;[?][1]=pending order volume)
[
"200.0000", //price
"0.996000" //pending order volume
],
[
"100.0000",
"0.001000"
],
[
"20.0000",
"10.000000"
]
],
"asks": [] //sell order([?][0]=price;[?][1]=pending order volume)
}
}