Description
Retrieves a list of closed trading positions (trades) with detailed profit/loss information, entry and exit prices, quantities, and holding times. Useful for displaying trade history, calculating performance metrics, and analyzing past trading decisions.Input Schema
VariantId
Filter trades by model variant. Valid values:
"Apex", "Trendsurfer", "Contrarian", "Sovereign". Omit to fetch trades from all variants.number
Maximum number of trades to return. Must be between 1 and 500. Defaults to all available trades if not specified.
TypeScript Type
Output Schema
Trade[]
Array of closed trade objects.
TypeScript Type
Example Usage
Basic Query
Filter by Variant
Calculate Performance Metrics
Related Endpoints
- trading.getPositions - Fetch open positions
- trading.getPortfolioHistory - Fetch historical portfolio values

