Skip to content
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, 2026
Stars
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.

9.0k9.2k9.3kOct 8Nov 27
Cumulative GitHub stars, Oct 8, 2026 to Nov 27, 2026. Source: InvestingStack daily snapshots.

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