Get 24h statistics ticker
Type: GET Description: /v4/public/ticker/24h
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/24h?symbol=XT_USDT' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
Response Example
Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": [
{
<<<<<<< Updated upstream
"s": "btc_usdt", // trading pair
"t": 1661856036925, // update time
"cv": "0.0000", // price change
"cr": "0.00", // price change percentage
"o": "9000.0000", // opening price (first trade)
"l": "9000.0000", // lowest price
"h": "9000.0000", // highest price
"c": "9000.0000", // closing price (last trade)
"q": "0.0136", // trading volume
"v": "122.9940" // trading value
=======
"s": "btc_usdt", //symbol
"t": 1661856036925, //time
"cv": "0.0000", //price change value
"cr": "0.00", //price change rate
"o": "9000.0000", //open price
"l": "9000.0000", //lowest price
"h": "9000.0000", //highest price
"c": "9000.0000", //close price
"q": "0.0136", //transaction quantity
"v": "122.9940" //transaction volume
>>>>>>> Stashed changes
}
]
}