Python Backtesting

Open-source Python projects categorized as Backtesting

Top 23 Python Backtesting Projects

Backtesting
  1. backtrader

    Python Backtesting library for trading strategies

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. hummingbot

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

    Project mention: 7 Best Open-Source Crypto Trading Bots 2025 (Ranked & Reviewed) | dev.to | 2025-03-19

    Hummingbot is great for traders who want to provide liquidity and profit from bid-ask spreads. It’s highly customizable and supports advanced trading strategies.

  4. stock

    stock股票.获取股票数据,计算股票指标,筹码分布,识别股票形态,综合选股,选股策略,股票验证回测,股票自动交易,支持PC及移动设备。

  5. backtesting.py

    :mag_right: :chart_with_upwards_trend: :snake: :moneybag: Backtest trading strategies in Python.

    Project mention: Show HN: High-Frequency Trading and Market-Making Backtesting Tool with Examples | news.ycombinator.com | 2024-06-21
  6. vectorbt

    Find your trading edge, using the fastest engine for backtesting, algorithmic trading, and research.

    Project mention: Show HN: High-Frequency Trading and Market-Making Backtesting Tool with Examples | news.ycombinator.com | 2024-06-21
  7. OctoBot

    Open source crypto trading bot to automate crypto investments with ease.

    Project mention: 7 Best Open-Source Crypto Trading Bots 2025 (Ranked & Reviewed) | dev.to | 2025-03-19

    Octobot is a solid choice if you want an automated bot that’s easy to set up. It offers a simple UI and can run trading strategies without much manual intervention.

  8. zvt

    modular quant framework.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. pybroker

    Algorithmic Trading in Python with Machine Learning

  11. pycryptobot

    Python Crypto Bot (PyCryptoBot)

  12. AlphaPy

    Python AutoML for Trading Systems and Sports Betting

  13. optopsy

    A nimble options backtesting library for Python

  14. lumibot

    Backtesting and Trading Bots Made Easy for Crypto, Stocks, Options, Futures, FOREX and more

  15. Empyrial

    AI and data-driven quantitative portfolio management library for portfolio risk and performance analysis 投资组合管理

  16. algo-trader

    Trading bot with support for realtime trading, backtesting, custom strategies and much more.

  17. basana

    A Python async and event driven framework for algorithmic trading, with a focus on crypto currencies.

  18. Binance-Futures-Trading-Bot

    A Technical Analysis Bot that trades leveraged USDT futures markets on Binance.

  19. qf-lib

    Modular Python library that provides an advanced event driven backtester and a set of high quality tools for quantitative finance. Integrated with various data vendors and brokers, supports Crypto, Stocks and Futures.

  20. gym-mtsim

    A general-purpose, flexible, and easy-to-use simulator alongside an OpenAI Gym trading environment for MetaTrader 5 trading platform (Approved by OpenAI Gym)

  21. fast-trade

    low code backtesting library utilizing pandas and technical analysis indicators

  22. investing-algorithm-framework

    Framework for developing, backtesting, and deploying automated trading algorithms and trading bots.

  23. OptionSuite

    Option and stock backtester / live trader

  24. TSCV

    Time Series Cross-Validation -- an extension for scikit-learn

  25. TAcharts

    Apply popular TA tools and charts to candlestick data with NumPy.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Backtesting discussion

Log in or Post with

Python Backtesting related posts

  • Show HN: High-Frequency Trading and Market-Making Backtesting Tool with Examples

    6 projects | news.ycombinator.com | 21 Jun 2024
  • pybroker: NEW Other Models - star count:1362.0

    1 project | /r/algoprojects | 9 Dec 2023
  • pybroker: NEW Other Models - star count:1362.0

    1 project | /r/algoprojects | 8 Dec 2023
  • pybroker: NEW Other Models - star count:1362.0

    1 project | /r/algoprojects | 7 Dec 2023
  • pybroker: NEW Other Models - star count:1362.0

    1 project | /r/algoprojects | 7 Dec 2023
  • pybroker: NEW Other Models - star count:1362.0

    1 project | /r/algoprojects | 6 Dec 2023
  • pybroker: NEW Other Models - star count:1362.0

    1 project | /r/algoprojects | 5 Dec 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 17 May 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Backtesting projects in Python? This list will help you:

# Project Stars
1 backtrader 17,145
2 hummingbot 12,589
3 stock 8,875
4 backtesting.py 6,473
5 vectorbt 5,197
6 OctoBot 4,035
7 zvt 3,567
8 pybroker 2,557
9 pycryptobot 2,026
10 AlphaPy 1,506
11 optopsy 1,111
12 lumibot 1,024
13 Empyrial 997
14 algo-trader 827
15 basana 720
16 Binance-Futures-Trading-Bot 607
17 qf-lib 584
18 gym-mtsim 474
19 fast-trade 453
20 investing-algorithm-framework 431
21 OptionSuite 257
22 TSCV 254
23 TAcharts 155

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?