# bt

bt - flexible backtesting for Python

Canonical page: https://www.reposhelf.co.uk/projects/github/pmorissette/bt.html

- Project ID: pmorissette/bt
- Source: GitHub
- Original project: https://github.com/pmorissette/bt
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Python
- Licence: MIT
- Repository availability checked: 2026-11-20T16:34:03.376Z
- Demo page loaded: 2026-11-20T17:45:01.639Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Build, test, and compare investment strategies from reusable Python components. bt combines strategy logic with historical price data, tracks portfolio positions and transactions, and provides performance statistics and charts through ffn.

- Compose strategy logic: combine algorithms for scheduling, security selection, weighting, and rebalancing.
- Build portfolios of strategies: nest strategies and securities in a common tree.
- Model trading costs: configure commissions and transaction cost models.
- Compare results: inspect returns, weights, transactions, drawdowns, and other statistics.

## Author-documented requirements and audience

> Build, test, and compare investment strategies from reusable Python components. bt combines strategy logic with historical price data, tracks portfolio positions and transactions, and provides performance statistics and charts through ffn.



- Paid service — Required: Model trading costs: configure commissions and transaction cost models.

Not recorded: Account, External API key, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/pmorissette/bt/blob/master/README.md

Extraction checked: 2026-10-25T19:16:43.278Z

Last recorded source update: 2026-11-20T15:05:21.000Z

Saved release: v1.3.0 — 2026-10-03T17:39:04.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=pmorissette%2Fbt). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
