Retrieve all traded orders

📘

Frequency Limit Type: WEIGHT: 5

In regards to master API key. The request parameters of "side" and "accountId". If "accountId" is passed, it will only query the orders under the current account. If not passed, it will first query the main account, and if the results are less than 500, it will then query the sub-accounts.

Request Parameters


PARAMETERTYPEReq 'dDESCRIPTION
accountIdSTRINGAccount ID
orderIdLONGOrder ID
symbolSTRINGYCurrency pair
startTimeLONGStart Timestamp
endTimeLONGEnd Timestamp. Only supports the last 90 days timeframe
sideSTRINGSide
limitINTEGERDefault 500, max 1000
timestampLONGYTimestamp

Response Content


PARAMETERTYPEExample valuesDESCRIPTION
NoObject ArrayQuery result array
accountIdLONG1464567707961719552Account ID
exchangeIdLONG301Account number
symbolSTRINGETHUSDTrading pair
symbolNameSTRINGETHUSDTrading pair name
clientOrderIdSTRING9999999998000An ID defined by the client for the order, it will be automatically generated if it is not sent in the request
orderIdLONG1484664263574306816System generated order ID
priceSTRING(value)1860Price
origQtySTRING(value)10Quantity
executedQtySTRING(value)10Traded volume
cumulativeQuoteQtySTRING(value)18600Cumulative volume
avgPriceSTRING(value)1860Average traded price
statusENUMFILLEDOrder status
timeInForceENUMGTCDuration of the order before expiring
typeENUMLIMITOrder Type
sideENUMSELLBUY or SELL
stopPriceSTRING(value)0.0Not used
icebergQtySTRING(value)0.0Not used
timeSTRING(value)1691721772082Current Timestamp
updateTimeSTRING(value)1691721796685Update Timestamp
isWorkingBOOLEANtrueNot used
reqAmountSTRING0Requested cash amount
Language
Authorization
Header
Click Try It! to start a request and see the response here!