getSpreadTradeHistory
Retrieve spread trade execution history with per-leg details for fee audits and reconciliation. Supports time range queries up to 7 days.
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 |
|---|---|---|---|
| symbol | No | ||
| orderId | No | ||
| orderLinkId | No | ||
| startTime | No | ||
| endTime | No | ||
| limit | No | ||
| cursor | No |