Get order history 7 days
Authentication
Base64-encoded HMAC-SHA256 signature of the prehash string.
ISO 8601 UTC timestamp, e.g. 2020-12-08T09:08:57.715Z.
Query parameters
Instrument type SPOT MARGIN SWAP FUTURES OPTION EVENTS
Underlying. Applicable to FUTURES/SWAP/OPTION.
Instrument family Applicable to FUTURES/SWAP/OPTION
Instrument ID, e.g. BTC-USDT
Order type market: market order limit: limit order post_only: Post-only order fok: Fill-or-kill order ioc: Immediate-or-cancel order optimal_limit_ioc: Market order with immediate-or-cancel order mmp: Market Maker Protection (only applicable to Option in Portfolio Margin mode) mmp_and_post_only: Market Maker Protection and Post-only order(only applicable to Option in Portfolio Margin mode) op_fok: Simple options (fok) rpi: Retail Price Improvement order elp: Enhanced Liquidity Program order (Deprecated; use rpi. Accepted until October 31, 2026.)
State canceled filled mmp_canceled: Order canceled automatically due to Market Maker Protection
Pagination of data to return records earlier than the requested ordId
Pagination of data to return records newer than the requested ordId
Filter with a begin timestamp cTime. Unix timestamp format in milliseconds, e.g. 1597026383085
Filter with an end timestamp cTime. Unix timestamp format in milliseconds, e.g. 1597026383085
Number of results per request. The maximum is 100; The default is 100
Response
Result code. 0 means success; any other value is an error code.

