Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Backtesting Python Packages

Python packages with the GitHub topic backtesting. Sorted by monthly downloads, with stars and forks.
polakowo
vectorbt

The research engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.

398K 10K 1K
kernc
backtesting

🔎 📈 🐍 💰 Backtest trading strategies in Python.

227K 9K 2K
mementum
backtrader

Python Backtesting library for trading strategies

215K 24K 5K
skfolio
skfolio

Python library for portfolio optimization and risk models, built on scikit-learn

208K 3K 322
pkjmesra
pkscreener

A Python-based stock screener for NSE, India. PKScreener is an advanced free stock screener to find potential breakout stocks from NSE and show its possible breakout values. It also helps to find the stocks which are consolidating and may breakout, or the particular chart patterns that you're looking specifically to make your decisions.

104K 415 195
pynesys
pynesys-pynecore

Pine Script-compatible Python runtime for indicators and strategies, validated against TradingView on real published scripts

92K 286 86
Lumiwealth
lumibot

Python trading framework with AI agents that actually place the trade. Backtest, paper and live trade on 12 brokers: stocks, options, futures, forex, crypto and prediction markets.

47K 2K 439
xLydianSoftware
qubx

Framework for quantitative strategies development, backtesting and live execution.

43K 73 17
marketcalls
openscript

An open trading language. Write a study or a strategy once, plot it, backtest it, trade it.

35K 19 10
jordantete
grid-trading-bot

🤖 Open-source cryptocurrency trading bot designed to perform grid trading strategies using historical data for backtesting

28K 153 62
ml4t
ml4t-specs

Serializable, runtime-neutral contracts for market data, artifacts, strategy lifecycles, and execution across ML4T libraries.

25K 7 8
goldspanlabs
optopsy

A nimble options research and backtesting library for Python

24K 2K 231
Mattbusel
fin-primitives

One RSI, not three. 700+ trading indicators matched to TA-Lib, exact decimal prices, order book, Greeks and risk limits. Rust, with Python wheels.

22K 19 2
ArturSepp
qis

Performance analytics, portfolio backtesting, risk analysis, and factsheet reporting in Python

22K 669 81
nkaz001
hftbacktest

Free, open source, a high frequency trading and market making backtesting and trading bot, which accounts for limit orders, queue positions, and latencies, utilizing full tick data for trades and order books(Level-2 and Level-3), with real-world crypto trading examples for Binance and Bybit

19K 5K 981
artherahq
aria-code

Local-first AI coding & quant agent in your terminal — 100% offline via Ollama or 19+ cloud LLMs, MCP-native, with live market data and strict approval gates.

14K 7 3
HKUDS
vibe-trading-ai

"Vibe-Trading: Your Personal Trading Agent"

13K 39K 6K
acpuchades
fugazi

Fast incremental technical analysis indicators and backtesting for Rust and Python — O(1) streaming updates, no TA-Lib C build, Python bindings, a YAML strategy language, and a CLI.

12K 1 1
manifoldbt
manifoldbt

Fast Python backtesting with a Rust engine: parameter sweeps, walk-forward, Monte Carlo, realistic execution, Polymarket and Hyperliquid data

11K 56 7
zvtvz
zvt

modular quant framework.

10K 4K 1K
hummingbot
hummingbot

Open source software that helps you create and deploy high-frequency crypto trading bots

10K 21K 5K
ArtBreguez
pmlab

Plugin-based ML framework for Polymarket prediction markets: no-lookahead backtests, a hard GO/NO_GO gate, paper trading, drift monitoring

10K 0 0
wickra-lib
wickra

Streaming-first technical indicators with a Rust core: native Python, Node.js and WebAssembly bindings plus a C ABI hub for C, C++, C#, Go, Java and R. 515 indicators, O(1) per-tick updates, no system dependencies. Drop-in TA-Lib replacement.

9K 79 11
BoringQuantSystems
nanobook

Rust execution layer for Python trading strategies: deterministic LOB whose core matching rules are proved on a Lean 4 model, portfolio backtests, pre-trade risk, and IBKR rebalancing.

8K 12 2
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology