Open-source directory

Open-source trading and backtesting frameworks

18 widely used open-source projects for backtesting, live trading, crypto bots, machine learning and market data, with what each is good at, where it falls short, and how actively it is maintained. GitHub numbers are refreshed every week.

Backtesting libraries · Backtest-to-live platforms · Crypto trading bots · AI and machine learning · Data and indicators

How to choose

  • Learning, or porting rule-based systems with detailed orders: an event-driven library such as Backtrader or Backtesting.py.
  • Testing many parameter combinations quickly: vectorbt. Then confirm the final rules in an event-driven engine.
  • Going live with a broker across asset classes: LEAN or NautilusTrader; for Chinese futures and stocks, vn.py.
  • Crypto: Freqtrade for directional strategies, Hummingbot for market making and arbitrage.
  • Machine learning: Qlib for stock selection models, FinRL for reinforcement learning, TradingAgents for language-model agents.
  • Whatever you pick, test parameters out of sample. Across our own 486 walk-forward tests the median Sharpe ratio fell from 0.32 on the training data to 0.19 on new data.

Backtesting libraries

Libraries for testing a strategy on historical data in Python. Pick by how you think about strategies: event by event, or whole arrays at once.

ProjectWhat it isLanguageLicenseStarsLast commitStatus
BacktraderEvent-driven Python backtesting and live-trading library with a large community.PythonGPL-3.023.7k2024-08-19Inactive
ZiplineQuantopian's event-driven backtester with the Pipeline API; the original repository is no longer maintained.PythonApache-2.020.2k2024-02-13Inactive
vectorbtVectorized backtesting on pandas and NumPy, built to test thousands of parameter combinations fast.PythonApache-2.0 + Commons Clause9.8k2026-11-08Active
Backtesting.pySmall, readable backtesting library with interactive charts and a built-in optimizer.PythonAGPL-3.09.2k2026-08-05Slowing
PyAlgoTradeEarly event-driven Python backtester, now archived by its author.PythonSee repository4.7k2023-11-13Archived
btPortfolio backtesting built from reusable blocks, for allocation and rebalancing strategies.PythonMIT3.0k2026-11-08Active

Backtest-to-live platforms

Engines that run the same strategy code in backtests and with a real broker or exchange, across several asset classes.

ProjectWhat it isLanguageLicenseStarsLast commitStatus
vn.py (VeighNa)The most widely used open-source quant trading platform in China, now branded VeighNa.PythonMIT46.3k2026-11-07Active
NautilusTraderHigh-performance, event-driven trading platform with a Rust core and a Python API.RustLGPL-3.031.4k2026-11-10Active
QuantConnect LEANQuantConnect's open-source engine: C# core, Python strategies, many asset classes, backtest and live.C#Apache-2.022.5k2026-11-10Active

Crypto trading bots

Ready-to-run bots for crypto exchanges, with backtesting, paper trading and remote control built in.

ProjectWhat it isLanguageLicenseStarsLast commitStatus
FreqtradeThe most popular open-source crypto trading bot, with backtesting, hyperparameter search and machine learning.PythonGPL-3.056.7k2026-11-10Active
HummingbotOpen-source framework for market making and arbitrage bots on centralized and decentralized exchanges.PythonApache-2.021.1k2026-11-09Active
JesseCrypto trading framework focused on simple strategy syntax and accurate backtests.PythonMIT8.8k2026-11-10Active

AI and machine learning

Research frameworks that use machine learning, reinforcement learning or language-model agents to make trading decisions.

ProjectWhat it isLanguageLicenseStarsLast commitStatus
TradingAgentsMulti-agent framework where language-model agents act as analysts, researchers, a trader and a risk team.PythonApache-2.0121.8k2026-11-04Active
QlibMicrosoft's AI-oriented quant investment platform for building and testing machine-learning alpha models.PythonMIT50.2k2026-11-04Active
FinRLDeep reinforcement learning library for trading research and teaching.Jupyter NotebookMIT17.0k2026-11-03Active

Data and indicators

Building blocks most strategies need: market data and technical indicators.

ProjectWhat it isLanguageLicenseStarsLast commitStatus
CCXTOne API for market data and trading on more than a hundred crypto exchanges.PythonMIT44.9k2026-11-10Active
yfinanceFree download of Yahoo Finance prices and fundamentals into pandas.PythonApache-2.025.9k2026-11-09Active
TA-Lib (Python)Python wrapper for TA-Lib, the classic C library of 150+ technical indicators and candlestick patterns.CythonBSD-2-Clause12.4k2026-11-09Active

Head-to-head comparisons

GitHub statistics as of 2026-11-10. Status: active = commits in the last 90 days, slowing = in the last year, inactive = older, archived = read-only. Descriptions are our own summary and may lag behind each project's documentation. Check the project's license before using it in a product. Nothing here is investment advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.