Get the best pending order ticker
Type: GET Description: /v4/public/ticker/book
Parameters
| name | type | mandatory | default | description | ranges |
|---|---|---|---|---|---|
| symbol | string | false | trading pair eg:btc_usdt | ||
| symbols | array | false | Collection of trading pairs. Priority is higher than symbol. eg: btc_usdt,eth_usdt | ||
| tags | string | false | Set of tags, separated by commas, currently only supports spot |
Limit Flow Rules
- single symbol:
10/s/ip - multiple symbols:
10/s/ip
Request Example
Request
curl --location --request GET 'https://sapi.xt.com/v4/public/ticker/book?symbol=XT_USDT' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
Response Example
Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": [
{
"s": "btc_usdt", // trading pair
"t": 1661856036925, // update time
"ap": null, // best ask price
"aq": null, // best ask quantity
"bp": null, // best bid price
"bq": null // best bid quantity
}
]
}