TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/theonetrade/backtest-kit/llms.txt
Use this file to discover all available pages before exploring further.
@backtest-kit/cli package is a zero-boilerplate CLI runner for backtest-kit strategies. Point it at your strategy file and run backtests, paper trading, or live bots without writing a single line of infrastructure code. Storage, candle caching, signal logging, Telegram notifications, and the web dashboard are all wired up automatically — your project contains only the strategy logic itself.
Key Features
Zero Config
Run a backtest with one command — no exchange registration, runner, or persistence setup code required.
Three Modes
Switch between
--backtest, --paper, and --live with graceful SIGINT shutdown built in.Auto Cache
Warms the OHLCV candle cache for all intervals automatically before the backtest starts.
Web Dashboard
Launch the full
@backtest-kit/ui trading dashboard with a single --ui flag — no extra config.Telegram Alerts
Formatted trade notifications with price charts sent to your channel via
--telegram.Monorepo Ready
Each strategy’s
dump/, modules/, and template/ directories are automatically isolated by entry point directory.All infrastructure code — storage adapters, exchange registration, the runner loop, candle caching — lives inside
@backtest-kit/cli. Your project contains only your strategy files. There is nothing to maintain beyond your strategy logic.Getting Started
Initialize a new project with a single command:Scaffold the project
docs/lib/ on init.Three Execution Modes
Pass one flag to select the execution mode. The strategy file itself is identical across all three.| Flag | Description |
|---|---|
--backtest | Replay historical OHLCV data and produce a Markdown PNL report |
--paper | Live candle feed with simulated order fills |
--live | Real order execution via your configured exchange adapter |
Docker Integration
The CLI can generate a self-contained Docker workspace with a ready-to-usedocker-compose.yaml and strategy entry point:
Multiple Symbol Parallel
For power users running many symbols concurrently,@backtest-kit/cli supports launching multiple symbols in parallel from a single process. Each symbol’s storage is automatically isolated so signals, dumps, and caches never collide between strategies.