43 open-source frameworks and libraries

Algorithmic Trading Frameworks & Libraries

What each framework is for, how it works, its strengths and limits, and a working example. Already use one? Design and backtest your strategy in AlgoGP, then run the same code inside your framework of choice.

Use your framework inside AlgoGP

Projects can add a bridge for QuantConnect LEAN, NautilusTrader, Backtrader, Zipline Reloaded, Lumibot, VeighNa (vn.py), vectorbt, backtesting.py, Freqtrade, Hummingbot, Jesse, CCXT, ib_async, QuantStats. The bridge runs your project’s own strategy.py inside the framework, so the rules you backtested in AlgoGP are exactly what it trades.

Backtest + live trading engines

Event-driven engines that run the same strategy code in a backtest and against a live broker.

  • QuantConnect LEAN
    Actively developed AlgoGP bridge

    The open-source engine behind QuantConnect: event-driven backtesting and live trading in C# or Python across equities, options, futures, FX and crypto.

    C#, Python · Apache-2.0

  • NautilusTrader
    Actively developed AlgoGP bridge

    High-performance, Rust-core trading platform with a Python API: the same strategy runs in a nanosecond-resolution backtester and live across many venues.

    Python, Rust · LGPL-3.0

  • Backtrader
    Low activity AlgoGP bridge

    The classic Python event-driven backtesting library: Cerebro, data feeds, analyzers, sizers and plotting, with live stores for IB and OANDA.

    Python · GPL-3.0

  • Zipline Reloaded
    Maintained AlgoGP bridge

    The maintained fork of Quantopian’s Zipline: an event-driven, pipeline-based backtester for US equities with data bundles and realistic slippage models.

    Python · Apache-2.0

  • Lumibot
    Actively developed AlgoGP bridge

    Beginner-friendly Python framework from Lumiwealth: one Strategy class for backtesting and live trading stocks, options, futures and crypto.

    Python · GPL-3.0

  • VeighNa (vn.py)
    Actively developed AlgoGP bridge

    China’s most popular open-source quant platform: GUI trader, CTA strategy engine and backtester with gateways for CTP futures, IB, and crypto.

    Python · MIT

  • QSTrader
    Low activity

    QuantStart’s schedule-driven Python backtester for systematic, portfolio-level equity and ETF strategies with rebalancing and tear sheets.

    Python · MIT

  • Basana
    Maintained

    Async, event-driven Python framework for crypto backtesting and live trading on Binance and Bitstamp, from the author of PyAlgoTrade.

    Python · Apache-2.0

  • PyAlgoTrade
    Archived

    The early event-driven Python backtester, archived in 2023; its author recommends Basana. What it did, and what to migrate to.

    Python · Apache-2.0

  • RQAlpha
    Maintained

    Ricequant’s extensible Python backtesting and simulation framework for China A-shares and futures, with a mod system for data and brokers.

    Python · Apache-2.0 (non-commercial terms apply)

  • Blankly
    Low activity

    Python framework for writing one strategy and running it as a backtest, paper or live bot on Alpaca, Coinbase, Binance, Kraken and OANDA.

    Python · LGPL-3.0

Research & vectorized backtesting

Fast, vectorized or lightweight backtesters for exploring ideas and parameter spaces before going live.

  • vectorbt
    Maintained AlgoGP bridge

    Vectorized backtesting on pandas and Numba: test thousands of parameter combinations in seconds, with interactive Plotly analytics.

    Python · Apache-2.0 with Commons Clause

  • backtesting.py
    Maintained AlgoGP bridge

    Small, fast Python backtesting library: subclass Strategy, call Backtest.run(), get stats, an interactive Bokeh chart and built-in optimization.

    Python · AGPL-3.0

  • bt
    Maintained

    Flexible Python framework for portfolio-level backtests built from composable algos: select, weigh and rebalance on a schedule.

    Python · MIT

  • PyBroker
    Maintained

    Python framework for machine-learning trading strategies: walk-forward analysis, bootstrapped metrics and a fast Numba backtesting engine.

    Python · Apache-2.0 with Commons Clause

Crypto trading bots

Complete bots for crypto exchanges, from candle-based strategies to grids and DCA.

  • Freqtrade
    Actively developed AlgoGP bridge

    The most popular open-source crypto trading bot: Python strategies, backtesting, hyperopt, FreqAI machine learning, dry-run and Telegram/web control.

    Python · GPL-3.0

  • Hummingbot
    Actively developed AlgoGP bridge

    Open-source framework for crypto market making and arbitrage: connectors for CEXs and DEXs, Strategy V2 controllers, scripts and a REST API.

    Python, Cython · Apache-2.0

  • Jesse
    Actively developed AlgoGP bridge

    Python crypto trading framework with a clean strategy API, accurate multi-timeframe backtests, optimization and a live-trading plugin.

    Python · MIT

  • OctoBot
    Actively developed

    Open-source crypto bot with a web interface: grid, DCA, AI and TradingView-signal strategies, backtesting and many exchanges via CCXT.

    Python · GPL-3.0

  • Superalgos
    Maintained

    Visual, node-based crypto trading platform in JavaScript: design strategies, backtest, paper trade and run a distributed bot network.

    JavaScript · Apache-2.0

  • Passivbot
    Actively developed

    Grid and trailing-entry trading bot for perpetual futures, written in Python and Rust, with a backtester and evolutionary optimizer.

    Python, Rust · Unlicense

HFT & market making

Tools for order-book strategies where queue position and latency decide the outcome.

  • HftBacktest
    Actively developed

    High-frequency backtesting in Rust and Python that models queue position and feed/order latency from full order-book and trade data.

    Rust, Python · MIT

  • Barter
    Actively developed

    Rust libraries for event-driven live trading, paper trading and backtesting, with normalized exchange streams (barter-data) and execution.

    Rust · MIT

Broker, exchange & data libraries

Libraries that connect code to brokers, exchanges and data vendors.

  • CCXT
    Actively developed AlgoGP bridge

    One unified API for 100+ crypto exchanges in Python, JavaScript, PHP, C# and Go: market data, balances and orders with the same calls everywhere.

    Python, JavaScript, TypeScript, PHP, C#, Go · MIT

  • ib_async
    Actively developed AlgoGP bridge

    The maintained successor of ib_insync: a Pythonic, asyncio-friendly client for the Interactive Brokers TWS API and IB Gateway.

    Python · BSD-2-Clause

  • alpaca-py
    Actively developed

    Alpaca’s official Python SDK for its Trading, Market Data and Broker APIs: stocks, options and crypto, REST and WebSocket streams.

    Python · Apache-2.0

  • python-binance
    Maintained

    The widely used unofficial Python wrapper for the Binance REST and WebSocket APIs, with async support and spot, margin and futures endpoints.

    Python · MIT

  • Cryptofeed
    Maintained

    Normalized real-time crypto market-data feeds (trades, books, funding, liquidations) from dozens of exchanges over WebSockets, with storage backends.

    Python · XFree86

  • yfinance
    Actively developed

    The popular Python library for downloading Yahoo Finance prices, dividends, splits, options chains and fundamentals into pandas.

    Python · Apache-2.0

  • OpenBB
    Actively developed

    Open-source investment research platform: one Python interface to dozens of data providers for equities, crypto, macro, options and fixed income.

    Python · AGPL-3.0

Machine learning & AI

Frameworks for machine-learning and reinforcement-learning trading research.

  • Qlib
    Actively developed

    Microsoft’s AI-oriented quant platform: data processing, alpha factor research, ML models (LightGBM to Transformers), backtesting and RD-Agent.

    Python · MIT

  • FinRL
    Maintained

    Deep reinforcement learning library for trading from the AI4Finance Foundation: market environments, DRL agents and train-test-trade pipelines.

    Python · MIT

  • TensorTrade
    Low activity

    Composable Python framework for building, training and evaluating reinforcement-learning trading agents with Gym-style environments.

    Python · Apache-2.0

Portfolio optimization & analytics

Portfolio optimization, performance tear sheets and factor analysis.

  • PyPortfolioOpt
    Maintained

    Portfolio optimization in Python: mean-variance, Black-Litterman, hierarchical risk parity, efficient frontiers and discrete allocation.

    Python · MIT

  • Riskfolio-Lib
    Actively developed

    Advanced portfolio optimization on CVXPY: 20+ risk measures (CVaR, CDaR, EVaR), risk parity, HRP/HERC and constraints, with rich plots.

    Python · BSD-3-Clause

  • QuantStats
    Maintained AlgoGP bridge

    Portfolio analytics for quants: Sharpe, Sortino, drawdowns, monthly returns and full HTML tear sheets from a returns series in one line.

    Python · Apache-2.0

  • pyfolio-reloaded
    Maintained

    The maintained fork of Quantopian’s pyfolio: returns, positions, transaction and round-trip tear sheets for strategy performance analysis.

    Python · Apache-2.0

  • Alphalens Reloaded
    Maintained

    Factor analysis from the Quantopian lineage: information coefficients, quantile returns and turnover to test whether an alpha factor predicts returns.

    Python · Apache-2.0

Technical indicator libraries

Technical indicator libraries used by most of the above.

  • TA-Lib
    Maintained

    The standard C library of 150+ technical indicators and candlestick patterns, used from Python through the TA-Lib wrapper.

    C, Python · BSD-3-Clause

  • pandas-ta
    Low activity

    Pure-Python technical analysis extension for pandas: 130+ indicators as DataFrame methods, plus strategies that add many at once.

    Python · MIT

C#, Java & C++ frameworks

Trading frameworks for C#, Java and C++ developers.

  • StockSharp
    Actively developed

    C#/.NET trading platform and libraries: strategy designer, backtester and connectors to dozens of brokers, exchanges and crypto venues.

    C# · Apache-2.0

  • ta4j
    Actively developed

    Java library for technical analysis: 130+ indicators, rules, strategies and a backtesting engine for JVM trading systems.

    Java · MIT

  • QuantLib
    Actively developed

    The open-source C++ library for quantitative finance: pricing and risk for options, bonds, swaps and curves, with Python bindings.

    C++, Python · BSD-3-Clause (modified)

How to choose a trading framework

Research or production?

Vectorized tools (vectorbt, backtesting.py) answer “is there an edge?” fast. Event-driven engines (LEAN, NautilusTrader, Backtrader) model execution and go live.

Match the market

Crypto bots (Freqtrade, Hummingbot, Jesse) know exchanges deeply. Multi-asset engines (LEAN, Nautilus, Lumibot) cover stocks, options and futures.

Check it is alive

Prefer actively maintained projects for anything that touches real money; archived libraries break as Python and data APIs change.

Project names and trademarks belong to their owners; AlgoGP is not affiliated with or endorsed by any project listed. Licenses and maintenance status change, so check each repository before relying on it.