Get Trade History
get_trade_historyRecent FILLS as the broker reports them: the broker's own side (buy/sell) for each order, fill price, quantity, and entry_or_exit from the broker's open/close flag. Use this — not activity notices — to establish what actually happened (e.g. whether a ticket was closed and in which direction). If journal_side_mismatch is true, Gogi's journal disagrees with the broker: report the broker's side. Label accounts by display_label.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_trade_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days (1-30, default 7). | |
| limit | No | Max fills returned, newest first (1-50, default 20). | |
| symbol | No | Optional symbol filter (e.g. XAUUSD). | |
| broker_account_id | No | Optional account_ref from list_brokers; omit for all enabled accounts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| fills | No | ||
| errors | No | ||
| message | No | ||
| success | No |