getSpreadTradeHistory
Fetch spread trade execution history, including per-leg fills and fees, to audit and reconcile both legs of completed spread orders over a 7-day window.
Instructions
Query spread trading execution (trade) history, including individual leg execution details.
Usage Scenarios:
Review fills and execution prices for completed spread trades.
Audit fees per leg (use
execFeeV2for spot legs,execFeefor futures legs).Reconcile execution data across both legs of a spread order.
Query executions within a specific time range (max 7-day window).
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:
In self-trade cases, both maker and taker single-leg trades are returned.
For spot legs, use
execFeeV2instead ofexecFee(which is deprecated for spot).
Agent hint: GET endpoint requiring authentication. All parameters are optional. Time range limited to 7 days max. Response includes a nested legs array with per-leg execution details. For spot legs use execFeeV2 (execFee is deprecated for spot). Self-trade cases return both maker and taker legs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| symbol | No | ||
| endTime | No | ||
| orderId | No | ||
| startTime | No | ||
| orderLinkId | No |