getSpreadOrderHistory
Query historical spread trading orders to review past activity, reconcile trades, or analyze execution across both legs, with flexible filtering by order ID or time range.
Instructions
Query historical spread trading orders including filled, cancelled, and rejected orders.
Usage Scenarios:
Review past spread trading activity for reconciliation.
Look up a specific historical order by
orderIdororderLinkId.Query orders within a specific time range (max 7-day window).
Analyze spread order execution across both legs.
Time Range Logic:
Neither
startTimenorendTime: returns last 7 days of history.startTimeonly: returns data fromstartTimetostartTime + 7 days.endTimeonly: returns data fromendTime - 7 daystoendTime.Both provided:
endTime - startTimemust be <= 7 days.
Important:
orderIdandorderLinkIdtake precedence over time-based filtering.Fully cancelled orders are stored for up to 24 hours only.
Agent hint: GET endpoint requiring authentication. All parameters are optional. orderId and orderLinkId take priority over time filters. Time range is limited to 7 days max. Fully cancelled orders are retained for only 24 hours. Response includes both-leg details (leg1/leg2 fields).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | ||
| baseCoin | No | ||
| orderId | No | ||
| orderLinkId | No | ||
| startTime | No | ||
| endTime | No | ||
| limit | No | ||
| cursor | No |