Topics / #backtesting

Backtesting projects on GitHub

Testing trading strategies against historical market data.

As of , the most-starred Backtesting projects on GitHub are TradingAgents (111.6K stars), daily_stock_analysis (66.5K stars) and ai-hedge-fund (64.1K stars). GitHub.Locker tracks 31 Backtesting repositories with 756.9K stars combined. The fastest-growing on October 16 was TradingAgents, with +155 stars in a day.

31Projects
756.9KStars in total
+938Stars in a day

Hot right now

Most stars gained in a day · Oct 16

The all-time top

31 projects · by stars

  1. #1 · TauricResearch/TradingAgents

    TradingAgents

    TradingAgents is a multi-agent LLM framework that simulates a trading firm: specialized agents analyze fundamentals, sentiment, news, and technicals, bull/bear researchers debate the findings, and a trader plus risk/portfolio manager team decide whether to execute the trade.

    111.6K
  2. #2 · ZhuLinsen/daily_stock_analysis

    daily_stock_analysis

    An AI-driven stock analysis system that pulls market data and news for A-share, Hong Kong, US, Japanese, Korean and Taiwanese stocks, then generates a daily AI decision report and pushes it to WeChat Work, Feishu, Telegram, Discord, Slack or email.

    66.5K
  3. #3 · virattt/ai-hedge-fund

    ai-hedge-fund

    An AI-powered hedge fund proof of concept that uses AI (LLM-driven 'alpha models') to make simulated trading decisions. It's explicitly for educational and research purposes, not real trading or investment.

    64.1K
  1. 4

    freqtrade

    55.5Kfreqtrade/freqtrade · Python

    Freqtrade is a free, open-source crypto trading bot written in Python that automates buying and selling across major exchanges, controllable via Telegram or a built-in web UI.

  2. 5

    qlib

    49.4Kmicrosoft/qlib · Python

    Qlib is Microsoft's open-source, AI-oriented quantitative investment platform that covers the full quant research pipeline — data processing, model training, backtesting, and order execution — using supervised learning, market-dynamics modeling, and reinforcement learning.

  3. 6

    vnpy

    45.9Kvnpy/vnpy · Python

    VeighNa (vnpy) is an open-source Python framework for building quantitative trading systems, used by hedge funds, brokerages, and futures companies in China.

  4. 7

    Kronos

    40.9Kshiyu-coder/Kronos · Python

    Kronos is an open-source foundation model for financial candlestick (K-line) data, pretrained on data from over 45 global exchanges to produce price/volume forecasts.

  5. 8

    Vibe-Trading

    35.7KHKUDS/Vibe-Trading · Python

    Vibe-Trading is a personal trading agent toolkit that gives an AI agent full trading capabilities in one command — market data, backtesting, a quant research library, and order execution across many brokers and markets.

  6. 9

    nautilus_trader

    30.2Knautechsystems/nautilus_trader · Rust

    A production-grade algorithmic trading engine: a Rust-native event-driven core driven from Python. Backtesting and live trading share the same architecture and execution semantics, so strategies go from research to production without a rewrite.

  7. 10

    awesome-quant

    30.2Kwilsonfreitas/awesome-quant · HTML

    A curated list of libraries, packages and resources for quants - people doing quantitative finance: pricing, trading, backtesting, risk and market data.

  8. 11

    backtrader

    23.5Kmementum/backtrader · Python

    backtrader is a Python library for backtesting trading strategies: you write a strategy as code, run it against historical market data and measure how it would have performed before risking real money.

  9. 12

    Lean

    22KQuantConnect/Lean · C#

    LEAN is QuantConnect's open-source, event-driven algorithmic trading engine, written in C# with Python support. You use it to build, backtest and live-trade strategies, with alternative data support out of the box.

  10. 13

    machine-learning-for-trading

    21.4Kstefan-jansen/machine-learning-for-trading · Jupyter Notebook

    The code repository for Machine Learning for Trading, 3rd Edition by Stefan Jansen: an end-to-end workflow for building, testing, and deploying ML-driven trading strategies, from data sourcing to live execution.

  11. 14

    hummingbot

    20.5Khummingbot/hummingbot · Python

    An open-source Python framework for building and deploying automated crypto trading bots across centralized and decentralized exchanges. Its users generated over $34 billion in volume across 140+ venues in the past year, and it is free under the Apache 2.0 license.

  12. 15

    zipline

    20.2Kquantopian/zipline · Python

    Zipline is a Pythonic algorithmic trading library — an event-driven system for backtesting trading strategies written in Python. It is used in production as the backtesting and live-trading engine behind Quantopian.

  13. 16

    abu

    18.9Kbbfamily/abu · Python

    This is 'abu' (阿布量化), an open-source Python framework for building, backtesting and running quantitative trading strategies across US/A-share/HK stocks, futures, options and cryptocurrencies like Bitcoin, using machine learning to optimize the strategies.

  14. 17

    stock

    14.8Kmyhhub/stock · Python

    It is a Python-based A-share stock quant system that scrapes daily stock and ETF data, computes technical indicators and chip (cost) distribution, recognizes 61 K-line patterns, runs multi-factor stock screening and strategies, backtests them, and can place automated trades, all viewable from a web UI on PC or mobile.

  15. 18

    awesome-systematic-trading

    14.8Kpaperswithbacktest/awesome-systematic-trading · Python

    A curated list of resources for systematic (quantitative) trading: papers, libraries, packages, books, articles, videos, blogs and courses for finding, developing and running trading strategies.

  16. 19

    QuantDinger

    12.9KOpenByteInc/QuantDinger · Python

    QuantDinger is an open-source, self-hosted AI Trading OS: it lets you research trading ideas with AI, write Python strategies on a Strategy API, backtest them server-side, and run paper or live trading across crypto exchanges and traditional brokers, with web, mobile, API, and MCP access.

  17. 20

    QUANTAXIS

    11.3Kyutiansut/QUANTAXIS · Python

    QUANTAXIS is a local-first quantitative trading framework for China's stock, futures and options markets, covering data fetching, backtesting, paper trading, live trading, visualization and multi-account management, with support for distributed task scheduling.

  18. 21

    quant-trading

    11Kje-suis-tm/quant-trading · Python

    This is a Python repository of quantitative trading strategies — a collection of standalone scripts implementing technical indicators, pattern recognition, options strategies and statistical arbitrage for backtesting on historical market data.

  19. 22

    StockSharp

    10.9KStockSharp/StockSharp · C#

    StockSharp (S#) is a free, open-source platform for trading on any market worldwide - crypto exchanges, stocks, futures, options, forex, and Bitcoin - supporting both manual and algorithmic trading, including high-frequency strategies.

  20. 23

    gekko

    10.2Kaskmike/gekko · JavaScript

    Gekko is a Bitcoin trading and backtesting platform that connects to popular Bitcoin exchanges — a trading bot written in JavaScript that runs on Node.js.

  21. 24

    tick-stock-panel

    5.9Kshy3130/tick-stock-panel · Python

    TSP is a self-hosted, zero-ops quantitative trading workbench for China's A-share stock market that combines stock screening, real-time anomaly monitoring, and strategy backtesting, with optional LLM-assisted analysis.

  22. 25

    TradingView-API

    5.6KMathieu2301/TradingView-API · TypeScript

    A Node.js library that pulls real-time stock, crypto, and forex prices plus indicator values straight from TradingView, without needing an official API key.

  23. 26

    anti-gambling-trader-tw

    1.1Kmars-tw/anti-gambling-trader-tw · Python

    A free, open-source Python tool that analyzes trading records (Taiwan stocks, US stocks, crypto, forex) to statistically test whether your profits are a repeatable edge or just luck plus survivorship bias, scans for scam language and fake performance claims, and can scaffold backtestable or paper-trading automation projects.

  24. 27

    bytex

    886BYTEX-TRADE/bytex · C#

    BYTEX is an open-source, event-driven algorithmic trading engine for .NET, written in C#. You write a trading strategy once and run the same code unchanged in backtesting, sandbox simulation, and live trading against real exchange accounts.

  25. 28

    CNEquity

    571rootSunc/CNEquity · Python

    之后每天运行一次 cne run daily 保持更新。想要更长的历史,或了解 init 具体做了什么,见初始化指南。

  26. 29

    deepseek-harness-quant

    248yuanwang589-dev/deepseek-harness-quant · Python

    A natural-language-driven, low-frequency quantitative trading decision system for China's A-share market. It combines a subjective Pitch decision chain, a hardcoded factor engine, and strict data-based arbitration, with the AI forbidden from predicting individual stock moves.

  27. 30

    bytex

    212BYTEX-TRADE/bytex · C#

    BYTEX is an open-source, event-driven algorithmic trading engine for .NET written in C#. You write a trading strategy once and run the exact same code unchanged against historical data (backtest), live data with simulated fills (sandbox/paper), or real exchange accounts (live), with fixed-point money and adapters for major crypto exchanges.

  28. 31

    EvoQuant

    141CamusGIT/EvoQuant · Python

    EvoQuant is a self-evolving AI research agent built specifically for quantitative investment research, automating the full loop from digesting research reports to running real factor experiments on market data.

Often tagged together