Make Backtrader an optional extra

This commit is contained in:
Yuxuan Yan
2026-06-10 15:13:11 +08:00
parent 459336b6cc
commit 4a477b8f75
4 changed files with 26 additions and 3 deletions
+4
View File
@@ -26,6 +26,10 @@ uv run python cli.py portfolio eval --positions-path portfolio/eq_10m.pq --data-
Add a runtime dep with `uv add <pkg>`, a dev/test dep with `uv add --dev <pkg>` (both update `pyproject.toml` + `uv.lock`).
Backtrader is optional (`uv sync --extra backtrader`) and is not used by the
current pipeline. Keep `portfolio simulate` as the canonical backtest/execution
path unless an explicit future adapter is requested.
Note: `tests/test_downloader.py` hits the network (live baostock/akshare); `tests/test_alpha.py` and `tests/test_portfolio.py` are pure and fast.
## Architecture: one decoupled pipeline