Backtest
get_backtestReturns one of your stored backtest runs with the trades get_my_backtests leaves out: up to the first 100, each with entry and exit time and price, direction, P&L percent and exit type, plus trades_total. Use it to see why a run won or lost after run_backtest or get_my_backtests; the equity curve is not returned. backtest_id is the id run_backtest returns and get_my_backtests lists; a run older than the account's newest 200 is no longer kept, and another account's id reads as not found. Needs an API key; read only.
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": {
"backtest_id": "<backtest_id>"
},
"name": "get_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backtest_id | Yes | Id of your run, from run_backtest or get_my_backtests. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Set only on a failed call (isError true): what went wrong. | |
| backtest | No | One run with its trades. |