Check a backtest
get_backtest_statusWhether a backtest started by run_strategy_backtest is queued, running, done or
failed (state), with an ETA while it runs. Free to call. It waits up to 20s for
a running backtest to finish before answering, so call it again rather than
sleeping between calls.
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": {
"key": "<key>"
},
"name": "get_backtest_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Pass to get_backtest_status to follow this backtest. | |
| say | No | The same status as a sentence. | |
| step | No | What the job is doing now. | |
| error | No | ||
| notes | No | Rebalance dates that did not build and what was held instead; the returns include those periods. | |
| state | Yes | ||
| started_at | Yes | ||
| eta_seconds | No | Seconds until it should be done; None once it is. | |
| strategy_id | Yes | ||
| elapsed_seconds | Yes | ||
| expected_seconds | Yes | How long a backtest usually takes. | |
| representative_from | No | Every rebalance from this date on built as defined; quote returns from it. None when no date was skipped. |