Skip to main content

Get Depth Info

Request Method

  • Type: GET
  • Endpoint: /future/market/v1/public/cg/orderbook
  • Note: This method does not require a signature

Request Parameters

NameTypeRequiredDefaultDescriptionRange
symbolstringTRUEN/ATrading pair
levelintFALSE50Depth level1-200

Request Example

curl -G "https://fapi.xt.com/future/market/v1/public/cg/orderbook" \
-H "Content-Type: application/x-www-form-urlencoded" \ # Required
-d "symbol=eth_usdt" # Required

Response Example

{
"ticker_id": "BTC-USDT",
"timestamp": 1698668957638,
"bids": [
["34794.6", "97164"],
["34794.5", "9897"],
...
],
"asks": [
["34794.7", "168479"],
["34794.8", "4009"],
...
]
}

Error Codes

Error codeDescription
invalid_symbolInvalid trading pair