Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

bt

pmorissette.github.io

  • Free plan
  • Windows
  • macOS
  • Linux

MIT License

Free

Free plan

What the maker publishes

Fixed income
The tree includes a notional-weighted FixedIncomeStrategy and a CouponPayingSecurity for securities that pay cashflows and can have holding costs. source
Install
bt installs with pip from PyPI or with conda from Conda Forge and requires Python 3.9 or later. source
License
bt is released under the MIT license, free of charge, and is provided as is without warranty. source
Market data
The tutorial data helper bt.get, an alias for ffn.get, downloads Adjusted Close prices from Yahoo! Finance by default. source
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. source
Platforms
Official builds cover Linux x86_64 and ARM64, macOS ARM64, and Windows x86_64. source
Portfolio trees
Securities and strategies can be nested in a tree so capital can be allocated across strategies as well as securities. source
Results
Results can be compared on returns, weights, transactions, drawdowns, and other statistics, with charts provided through ffn. source
Status
The project classifiers mark it as Beta. source
Strategy logic
Strategies are composed by combining algorithms for scheduling, security selection, weighting, and rebalancing. source
Support
Bugs and improvements are reported through GitHub issues. source
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. source
Version
The package version in the project metadata is 1.4.1. source
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. source
Who it is for
The documentation presents bt for designing and testing quantitative strategies, and states that backtest results do not predict future performance. source

Checked against the maker's pages on 14 Nov 2026.