
bt
bt is an open-source Python library for building, testing and comparing portfolio strategies from reusable components for scheduling, security selection, weighting and rebalancing.
- From
- Free
- Free plan
- Open source
- Platforms
- Code
- Markets
- Not recorded
- API
- Not recorded
- MCP server
- Not recorded
Plans
| Plan | Price | What it includes |
|---|---|---|
| Open source | Free | MIT. No charge. |
Free plan
Open source: free under the MIT licence source
Good to know
No market data is bundled: you supply your own price data, and the README notes results depend on data quality and modelling assumptions source
Details
- Licence
- MIT source
- Latest release
- v1.4.1, published 2026-10-10 source
- Language
- Python source
- Languages / strategy builder
- Python, composing strategies from algos (RunMonthly, SelectAll, WeighEqually, Rebalance and others) source
- Data included
- No bundled data; README examples use synthetic or user-supplied prices source
- Fill / slippage model documented
- Configurable commission and transaction cost models source
- GitHub stars
- 3,045 on pmorissette/bt source
- GitHub last push
- 20 Nov 2026 source
- Licence (GitHub)
- MIT source