Query account history and transaction records

  • If there is only fromId, It will return trades with IDs bigger than fromId, sorted in descending order.
  • If there is only toId. It will return trades with IDs less than toId, sorted in descending order
  • If both fromId and toId are provided. It will return trades between fromId and toId, sorted in descending order
  • If neither fromId or toId is provided, it will return the latest trade records, sorted in descending order.

Weight: 5

Request Parameters


PARAMETERTYPEReq'dDESCRIPTION
symbolSTRINGTrading pair
startTimeLONGStart Timestamp
endTimeLONGEnd Timestamp. Only supports the last 30 days timeframe
clientOrderIdSTRINGClient Order ID
fromIdLONGStarting ID
toIdLONGEnd ID
limitINTLimit of record
accountIdLONGAccount ID
timestampLONGYTimestamp

Response Content


PARAMETERTYPEExample valuesDESCRIPTION
-Object ArrayCheck transaction results
idINTEGER1470930841345474561Unique transaction ID (This value is the trade_id in v0 API)
clientOrderIdINTEGER999999999800021An ID defined by the client for the order, it will be automatically generated if it is not sent in the request
ticketIdINTEGER1478144171272585249Execution ID, the execution ID is the same for the direction of a single trade.
symbolSTRINGBTCUSDTrading pair
symbolNameSTRINGBTCUSDTrading pair name
orderIdINTEGER1470930841211329280Order ID
matchOrderIdINTEGER1470930605684362240//Ignore
priceSTRING (decimal)29851.03Price
qtySTRING (decimal)0.0005Quantity
commissionSTRING (decimal)0.02985103Commission fee
commissionAssetSTRINGUSDCurrency of commission fee
timeSTRING (decimal)1690084620567Millisecond Timestamp
isBuyerBOOLEANfalseWhether the trade is a buyer
isMakerBOOLEANfalseWhether the trade is a maker
feeObjectFee information
fee.feeCoinSTRINGUSDCurrency for fees
fee.feeCoinIdSTRINGUSDCurrency ID for fees
fee.feeCoinNameSTRINGUSDFee currency name
fee.feeSTRING (decimal)0.02985103Transaction fee amount
feeCoinIdSTRINGUSDFee currency
feeAmountSTRING (decimal)0.02985103Amount of transaction fee
makerRebateINTEGER0Return
accountIdLONG1545583349011201280Account ID
Language
Authorization
Header
Click Try It! to start a request and see the response here!