add_backtest_tradeswriteOwner-scopedAppend trades to one of the user's existing backtests (by id from get_backtests). Owner-scoped. Trade times are ISO-8601 or epoch ms; unknown fields are ignored. Returns the updated backtest with its full trade list. Backtests themselves are created in the app, not via this tool.
| Param | Type | Req. | Description |
|---|---|---|---|
| backtestId | string | yes | The backtest id to append trades to (from get_backtests). |
| trades | array | yes | Trades: [{ side: 'long'|'short', size, entryPrice?, exitPrice?, stopLoss?, takeProfit?, pnl?, openedAt?, closedAt? }]. |
Example prompts
- “Add this trade to my EURUSD backtest.”
- “Log these three trades to backtest 3f2a1b4c.”
Example call
{ "name": "add_backtest_trades", "arguments": { "backtestId": "3f2a1b4c-5d6e-7f80-9a1b-2c3d4e5f6a7b", "trades": [ { "side": "long", "size": 0.5, "entryPrice": 1.0821, "exitPrice": 1.086, "pnl": 195, "openedAt": "2026-06-10T08:00:00Z", "closedAt": "2026-06-10T13:20:00Z" } ] } }