# Backtesting.py — card for AI agents

Backtests trading strategies in Python.

Category: ML and data science · PyPI package `backtesting` · latest version 0.6.6 (checked 2026-11-01)
Install: `pip install backtesting`
License: AGPL-3.0-or-later (network-copyleft)

In your own product (generator, app, hosted service): **conditions**. Network copyleft (AGPL): people who use a hosted service built with it are owed the source of the whole service.

## Warnings
- The license is network copyleft (AGPL-3.0-or-later): read it before shipping closed-source software or a hosted service.

## Agent Skills for it
- backtesting-frameworks from wshobson/agents: `npx skills add wshobson/agents --skill backtesting-frameworks`
- backtesting-frameworks from rmyndharis/antigravity-skills: `npx skills add rmyndharis/antigravity-skills --skill backtesting-frameworks`

## Numbers (AgentGid data)
- Gid Score: 34.8 (#3692 of all tools, 232 of 293 in its category)
- Downloads last week: 51,750 (as of 2026-11-24), +6.5% over 4 weeks
- GitHub stars: 9,286 (as of 2026-11-24)
- Last push: 2026-08-05

## Often used with
NumPy 100.0%, pandas 100.0%, pandas-ta 100.0%, yfinance 100.0%, Colorama 80.0%, Google GenAI Python SDK 80.0%

## Links
- AgentGid page: https://agentgid.com/tools/backtesting/
- Homepage: https://kernc.github.io/backtesting.py/
- Repository: https://github.com/kernc/backtesting.py

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
