backtest_run
Run reproducible trading strategy backtests on Bybit market data, writing results only to experiments.db with metrics like trades, win rate, PnL, and fees.
Instructions
Run reproducible backtest via bybit_ws.experiments.backtest_runner. Пишет только в experiments.db (боевой state.db не трогает), 180s timeout, single-flight. Returns metrics: trades, win_rate, pnl, total_fees, equity_hash, git_commit
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": {
"symbol": "<symbol>"
},
"name": "backtest_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | History depth (days) | |
| params | No | Optional param overrides (JSON object) | |
| symbol | Yes | Trading pair, e.g. SOLUSDT | |
| interval | No | Candle interval (D, 240, 60, ...) | 240 |