Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Backtesting.py

Backtests trading strategies in Python.

ML and data sciencePYPI

GitHubWebsite

1. License

License from PyPI classifier.

github.com/kernc/backtesting.py

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Backtesting.py does

Backtests trading strategies in Python.

Backtesting.py popularity

35 / 100
Gid Score, #3692 overall
51.8K
downloads a week, pypi
9,286
GitHub stars
Backtesting.py: downloads per weekPyPI, backtesting 52,340
Backtesting.py: GitHub starskernc/backtesting.py 9,286

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Backtesting.py is used

  • Backtesting.py joined the catalog on its public numbers (51,750 downloads a week on PyPI and 9,286 GitHub stars), not on our project count: it is a dependency in 5 public GitHub projects of our scan, 0 of them set up for AI coding agents.
  • Projects that use it most often also use NumPy (100.0%), pandas (100.0%), pandas-ta (100.0%).

Often used with

In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 80.0% of its projects
In 80.0% of its projects
In 80.0% of its projects
In 80.0% of its projects

More about Backtesting.py

Funding
  • GitHub Sponsors: https://github.com/kernc

See all

Agent Skills for it
  • backtesting-frameworks: Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. U
  • backtesting-frameworks: Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. U

See all

More in ML and data science

Alternatives

Backtesting.py This page

AGPL-3.0-or-laterGid 3551.8K/wk

Compare Backtesting.py with another tool

Get started

Install it.

pip install backtesting

No step-by-step start for Backtesting.py yet: we have not written its hand-checked card.