Skip to main content

Query historical transaction list

Type: GET Description: /v4/public/trade/history

Parameters

nametypemandatorydefaultdescriptionranges
symbolstringtruetrading pair
limitnumberfalse2001~1000
directionstringtruequery directionPREV - previous page, NEXT - next page
fromIdnumberfalseStart ID, e.g. 6216559590087220004

Limit Flow Rules

10/s/ip

Request Example

Request
  curl --location --request GET 'https://sapi.xt.com/v4/public/trade/history?symbol=XT_USDT&limit=200&direction=NEXT' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \

Response Example

Response
{
"rc": 0,
"mc": "string",
"ma": [{}],
"result": [
{
"i": 0, // ID
"t": 0, // trade time
"p": "string", // trade price
"q": "string", // trade quantity
"v": "string", // trade amount
"b": true // whether the buyer is the maker
}
]
}