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.
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) |