Get Depth Info
Request Method
- Type: GET
- Endpoint:
/future/market/v1/public/cg/orderbook - Note: This method does not require a signature
Request Parameters
| Name | Type | Required | Default | Description | Range |
|---|---|---|---|---|---|
| symbol | string | TRUE | N/A | Trading pair | |
| level | int | FALSE | 50 | Depth level | 1-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 code | Description |
|---|---|
| invalid_symbol | Invalid trading pair |