run_backtest
Validate, estimate credit cost, or request synchronous or asynchronous backtests for DCA, combo, or grid bots using exchange and settings payload.
Instructions
Run a backtest operation: validate, estimate cost, request async, or request with sync response. Pass a backtest payload with exchange, exchangeUUID, and bot settings.
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": {
"mode": "<mode>",
"botType": "<botType>",
"payload": "<payload>"
},
"name": "run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Backtest mode. validate: confirm payload. estimate: check credit cost. request: async backtest. requestSync: wait for result. | |
| botType | Yes | Bot type for the backtest | |
| payload | Yes | Backtest request wrapper. Required nesting: payload.data.exchange (string), payload.data.exchangeUUID (UUID string), payload.data.settings (inner bot settings object). Optional: from, to (Unix ms timestamps), interval (default: 1h). | |
| paperContext | No | Paper trading context (true = paper, false = real). Default: false | |
| fields | No | Field selection for requestSync mode (optional) |