Skip to main content

Get depth data

Type: GET Description: /v4/public/depth

Parameters

nametypemandatorydefaultdescriptionranges
symbolstringtruetrading pair eg:btc_usdt
limitnumberfalse100minimum number of queries is 1001~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]
}
}