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 backtesting engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.

347K 9K 1K
kernc
backtesting

🔎 📈 🐍 💰 Backtest trading strategies in Python.

183K 9K 2K
mementum
backtrader

Python Backtesting library for trading strategies

170K 23K 5K
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.

97K 399 184
goldspanlabs
optopsy

A nimble options research and backtesting library for Python

64K 1K 228
xLydianSoftware
qubx

Framework for quantitative strategies development, backtesting and live execution.

58K 71 18
varrdinc
varrd

AI-powered trading research platform. Test any idea on stocks, futures, and crypto with event studies, backtesting, and statistical validation. MCP server with 8 tools. pip install varrd.

49K 24 6
NeoZorK
monte-neo

Independent verifier for trading strategies written by AI agents and humans: catches look-ahead bias, hidden costs and overfitting. MCP server, CLI, GitHub Action, signed certificates.

43K 8 0
pynesys
pynesys-pynecore

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

31K 229 67
artheras
aria-code

Terminal-first AI financial agent — runs fully offline via Ollama, 19+ cloud LLM providers, live market data, and a built-in quant research engine.

29K 6 1
Lumiwealth
lumibot

AI agents that actually place the trade. 12 brokers, real backtests, stocks options futures forex crypto and prediction markets.

26K 2K 412
eminsk
yfinance-ta-patterns

Institutional-grade Candlestick & Chart Pattern Scanner with AI Confluence Scoring, Backtesting, Native MCP Server, No-GIL (3.13t-3.16t) & PyPy (3.8-3.12)

18K 1 1
ArturSepp
qis

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

17K 641 75
ml4t
ml4t-specs

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

15K 3 8
marketcalls
openscript

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

14K 16 6
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. 514 indicators, O(1) per-tick updates, no system dependencies. Drop-in TA-Lib replacement.

13K 66 9
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

12K 5K 926
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
ml4t
ml4t-backtest

Event-driven backtesting for quantitative strategies with configurable execution, accounting, risk, and framework-parity validation.

12K 31 24
zvtvz
zvt

modular quant framework.

11K 4K 1K
simoncoombes
tradefloor

A simulated stock market for testing trading strategies and AI agents. Orders move prices, any market can be forked, and every run reproduces exactly.

10K 0 0
wickra-lib
wickra-gym

A Gymnasium-compatible, microstructure-aware backtest environment with O(1) steps: precompute the dataset to a fixed feature tensor once, then step() is a pure array index. Deterministic RL rollouts, recomputable byte-for-byte in ten languages.

9K 2 0
wickra-lib
wickra-impact

The backtester that knows you would have moved the market: agent-based fills on the real historical L2 order book.

9K 1 0
wickra-lib
wickra-backtest

Streaming-native backtester for the Wickra indicator library — backtest == live, in 10 languages (WIP).

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