Get depth data
Type: GET Description: /v4/public/depth
Parameters
| name | type | mandatory | default | description | ranges |
|---|---|---|---|---|---|
| symbol | string | true | trading pair eg:btc_usdt | ||
| limit | number | false | 100 | minimum number of queries is 100 | 1~500 |
Limit Flow Rules
10/s/ip
Request Example
Request
curl --location --request GET 'https://sapi.xt.com/v4/public/depth?symbol=XT_USDT&limit=100' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
Response Example
Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"timestamp": 1662445330524, // timestamp
"lastUpdateId": 137333589606963580, // last update ID
"bids": [
["200.0000", "0.996000"],
["100.0000", "0.001000"],
["20.0000", "10.000000"]
], // bids [price, order quantity]
"asks": [] // asks [price, order quantity]
}
}