Run a backtest
LivePaste a strategy YAML, hit Run. The engine replays the legs over the window against the bhavcopy historical store and returns headline P&L stats, equity curve, and the per-trade ledger.
Strategy YAML
POSTs to /api/backtest/run → proxied to the main Lightsail box /api/backtest/run (server/api/backtest_endpoint.py). Engine replays the legs over the requested window against the bhavcopy DuckDB store and returns the canonical BacktestRun JSON.