Skip to main content

Full ticker

Description

GET /v4/public/ticker


Limit Rule

  1. Single symbol: 10 requests/second/ip
  2. Multiple symbols: 10 requests/second/ip

Parameters

NameTypeMandatoryDefaultDescriptionRanges
symbolstringNoN/ATrading pair, e.g. btc_usdt-
symbolsarrayNoN/ACollection of trading pairs. Priority is higher than symbol, e.g. btc_usdt,eth_usdt-
tagsstringNoN/ASet of tags, separated by commas. Currently only supports spot-

Request Example

Request
  curl --location --request GET 'https://sapi.xt.com/v4/public/ticker?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": 1662444879425, // update time
"cv": "0.00", // price change
"cr": "0.0000", // price change percentage
"o": "200.00", // opening price (first trade)
"l": "200.00", // lowest price
"h": "200.00", // highest price
"c": "200.00", // closing price (last trade)
"q": "0.002", // trading volume
"v": "0.40", // trading value
"ap": null, // best ask price
"aq": null, // best ask quantity
"bp": null, // best bid price
"bq": null // best bid quantity
}
]
}
=======
{
"s": "btc_usdt", //symbol
"t": 1662444879425, //update time
"cv": "0.00", //change value
"cr": "0.0000", //change rate
"o": "200.00", //open
"l": "200.00", //low
"h": "200.00", //high
"c": "200.00", //close
"q": "0.002", //quantity
"v": "0.40", //volume
"ap": null, //asks price(sell one price)
"aq": null, //asks qty(sell one quantity)
"bp": null, //bids price(buy one price)
"bq": null //bids qty(buy one quantity)
}
]
}
>>>>>>> Stashed changes