Fill history
search_tradesFind executed trades for a trading account by specifying a time range. Returns trade details, including profit and loss for closed positions.
Instructions
Fills in a time window. profitAndLoss is null on the opening half of a round turn (halfTurn=true) and set on the closing fill. Defaults to the current trading day.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "search_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Trading account ID from list_accounts. | |
| endTimestamp | No | ||
| startTimestamp | No |