Backtesting.py

Backtesting.py keeps the first backtest small and readable. A short Python strategy class, bundled sample data, a built-in optimizer, and interactive result charts make it easy to see the whole experiment in one place.

strategy backtestingstrategy optimizationPython frameworkbeginners
GitHub Stars8,745
Primary languagePython
LicenseAGPL-3.0
Official repositoryOpen GitHub ↗

Is it a fit?

The quick decision view, grounded in the ranking data and verification record.

Best for

Python users who want a small, readable library for quick rules-based strategy tests and parameter optimization.

Not ideal for

Teams needing paper trading, live execution, a data platform, or a locally verified result from this site.

Tested status

Not locally tested

Setup difficulty

Low

Last verified

2026-08-02

What it can do

Research and testing

Strategy backtesting
Yes
LLM or agent based
No

Trading

Paper trading
Not confirmed
Automated trading
Not confirmed

Getting started

API key required to start
No
Registration required to start
No
Self-hostable
Yes

Capabilities shown as Yes or No come from the official project source. Unconfirmed fields remain “Not confirmed”.

Related task rankings

The same tool can rank differently for different jobs.