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
+10
View File
@@ -48,6 +48,13 @@ The env is managed with [uv](https://docs.astral.sh/uv/). `uv sync` builds `.ven
uv sync
```
Backtrader is an optional dependency and is **not used by the current pipeline**.
Install it only for future experiments or adapter work:
```bash
uv sync --extra backtrader
```
## Quick start
```bash
@@ -401,6 +408,9 @@ constructed positions, fills/costs, P&L, and target-weight research metrics.
- [x] **Reference execution simulation** — next-open fills over constructed
`position_shares`, with suspension, price-limit, volume-cap, transaction-cost,
and slippage controls.
- [ ] **Optional Backtrader adapter** — Backtrader is available as the
`backtrader` extra for possible future event-driven/broker-style experiments,
but it is not part of the current canonical portfolio workflow.
- [ ] **Forward / paper trading** — run the same construction logic on live
daily data, track simulated fills and a running P&L without real capital.
- [ ] **Intraday / microstructure data** — bid/ask prices & sizes, mid-price,