Skip to main content

Get Depth Data of Trading Pairs

Type: GET

Description: /future/market/v1/public/q/depth

Limit Flow Rules

10/s/ip


> Note:This method does not require a signature.

Parameters

NameTypeMandatoryDefaultDescriptionRanges
symbolstringtrueN/ATrading pair
levelintegertrueN/ALevel (min:1, max:50)

Request Example

Request
{
curl -G "https://fapi.xt.com/future/market/v1/public/q/depth" \
-d "symbol=btc_usdt" \ # required
-d "level=1" \ # required
}

Response Example

Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {
"a": [], // Buy
"b": [], // Sell
"s": "", // Trading pair
"t": 0, // Time
"u": 0 // updateId
},
"returnCode": 0
}

Error Code

Error CodeDesc
invalid_symbolSymbol does not exist
invalid_levelThe minimum value of level is 1 and must be an integer