what_if_backtest
Backtest a trading strategy with custom parameters to evaluate performance metrics before live deployment.
Instructions
Run a backtest on a strategy. Async, may take 30-120 seconds. Returns full performance metrics.
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": {
"strategyId": "<strategyId>",
"exchange": "<exchange>"
},
"name": "what_if_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 3m | |
| symbol | No | BTC/USDT | |
| exchange | Yes | Exchange account ID (use list_exchanges to find) | |
| timeframe | No | Candle timeframe (e.g. 1h, 4h, 1d) | 1h |
| strategyId | Yes | Strategy ID to backtest | |
| initialBalance | No |