Get Order History

Get all historical orders in chronological order (authentication required).

The rejection reason can take the following values:

Field valusesDescription
NORMAL_CANCELUser Requested Cancellation
TIME_EXPIREDGTD Order Expired
REPLACE_CANCELCanceled for Replacement
CANCEL_BECAUSE_FOK_NOT_FULLFOK Requirement Not Met
CANCEL_BECAUSE_IOC_NOT_FULLIOC Partial Fill Residual Canceled
CANCEL_BECAUSE_POST_ONLY_WILL_FILLPost-Only Reject (Liquidity Taking)
CANCEL_BECAUSE_SELF_TRADESelf-Trade Prevention (STP) Triggered
TRADE_PRICE_LIMITPrice Collar / Limit Protection Triggered
Query Params
string

Trading pair, optional; defaults to returning trade information for all trading pairs

string

Order ID, when provided, queries solely by symbol and orderId.

boolean
Defaults to false

Forward/backward pagination query; default false represents backward pagination

int64

Starting index for query; forward pagination requires min id on current page, backward pagination requires max id on current page

integer
1 to 500
Defaults to 100

Number of records to query; default 100, max 500, min 1

int64

Start time; start time must be earlier than end time

int64

End time; end time must be later than start time, time interval cannot exceed 7 days

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json