Run a backtest
run_backtestRun a strategy against real historical data and return its performance. Nothing is saved or published unless save is set — a backtest is a question, not a publication. Call get_strategy_spec_rules first if you have not already. If exactly this — same rules, settings and period, over months that have finished — was saved before (by this account, or publicly), that result comes back and no backtest is used.
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": {
"spec": "<spec>"
},
"name": "run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Persist the run. Omit for a throwaway backtest. | |
| spec | Yes | The strategy spec object — see get_strategy_spec_rules | |
| params | No | Override declared params for this run |