On the recordRead 14 Nov 202615 facts
bt
Plans and prices
MIT License
Free
use, copy, modify, merge, publish, distribute, sublicense, and/or sell · provided as is without warranty
Read 14 Nov 2026 · github.com
On the record
- Fixed income
- The tree includes a notional-weighted FixedIncomeStrategy and a CouponPayingSecurity for securities that pay cashflows and can have holding costs.pmorissette.github.io · read 14 Nov 2026
- Install
- bt installs with pip from PyPI or with conda from Conda Forge and requires Python 3.9 or later.pmorissette.github.io · read 14 Nov 2026
- License
- bt is released under the MIT license, free of charge, and is provided as is without warranty.github.com · read 14 Nov 2026
- Market data
- The tutorial data helper bt.get, an alias for ffn.get, downloads Adjusted Close prices from Yahoo! Finance by default.pmorissette.github.io · read 14 Nov 2026
- Notable limit
- Algo stacks are not validated by the framework, so the user must ensure each algo’s requirements and side effects are used correctly.pmorissette.github.io · read 14 Nov 2026
- Portfolio trees
- Securities and strategies can be nested in a tree so capital can be allocated across strategies as well as securities.pmorissette.github.io · read 14 Nov 2026
- Results
- Results can be compared on returns, weights, transactions, drawdowns, and other statistics, with charts provided through ffn.pmorissette.github.io · read 14 Nov 2026
- Status
- The project classifiers mark it as Beta.github.com · read 14 Nov 2026
- Strategy logic
- Strategies are composed by combining algorithms for scheduling, security selection, weighting, and rebalancing.pmorissette.github.io · read 14 Nov 2026
- Support
- Bugs and improvements are reported through GitHub issues.pmorissette.github.io · read 14 Nov 2026
- Trading costs
- A backtest charges no transaction cost by default, and can use a quantity-and-price commission function or a size-aware CostModel such as square-root impact or Almgren-Chriss.pmorissette.github.io · read 14 Nov 2026
- Version
- The package version in the project metadata is 1.4.1.github.com · read 14 Nov 2026
- What it does
- bt is a Python framework for building, testing, and comparing investment strategies from reusable components, using historical prices, positions, transactions, and ffn statistics and charts.pmorissette.github.io · read 14 Nov 2026
- Who it is for
- The documentation presents bt for designing and testing quantitative strategies, and states that backtest results do not predict future performance.pmorissette.github.io · read 14 Nov 2026