ToolsOpen sourceAGPL-3.0
Backtesting.py
Small, readable Python backtesting library for single-asset strategies
By kernc
Not yet reviewed
This project is listed, but we have not yet reviewed its documentation. The description is editorial and the figures come from GitHub.
Live GitHub metrics
Live GitHub data · Nov 27, 2026Stars
9,308
Stars · 7d
+41
Stars · 30d
+153
30d momentum
+1.7%
Forks
1,593
Open issues
115
Language
Python
Last push
3 months ago
No tagged releases. Repository created Jan 2, 2019.
What it is
Backtesting.py is a compact library with a clean API, interactive Bokeh charts and built-in parameter optimisation. It is a good first backtester for agent builders who need a sanity check before anything touches a broker.
In the maintainers' words: “🔎 📈 🐍 💰 Backtest trading strategies in Python.”
Tags
- Backtesting
- Lightweight
- Python
- #algo-trading
- #algorithmic-trading
- #backtesting
- #backtesting-engine
- #backtesting-frameworks
- #backtesting-trading-strategies
- #finance
- #financial-markets