Run Backtest
run_backtestRun a policy-aware historical backtest for this agent. Results appear in the agent's Backtesting tab and Activity feed. Requires Backtesting Pro.
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": {
"symbols": "<symbols>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo_id | No | Optional saved algo ID for strategy parameters | |
| symbols | Yes | Tickers to backtest (max 10) | |
| end_date | Yes | End date YYYY-MM-DD | |
| nickname | No | Optional label for the run | |
| timeframe | No | 1d | 1h | 30m | 15m | 5m | 1d |
| start_date | Yes | Start date YYYY-MM-DD | |
| asset_class | No | stock | crypto | forex | commodity | etf | |
| position_size | No | Size value depending on mode | |
| strategy_type | No | Optional strategy type override | |
| respect_policy | No | Apply agent policy constraints (default false, opt-in only) | |
| initial_balance | No | Starting equity (default 100000) | |
| position_size_mode | No | fixed_units | percent_equity | usd_notional | from_strategy | |
| strategy_parameters | No | Optional strategy parameters override |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| message | No | ||
| success | No |