getSpreadOrderHistory
Query historical spread trading orders including filled, cancelled, and rejected orders. Use to review past activity, lookup by order ID, or filter by time range up to 7 days.
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 |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| symbol | No | ||
| endTime | No | ||
| orderId | No | ||
| baseCoin | No | ||
| startTime | No | ||
| orderLinkId | No |