Topics / #backtesting

Backtesting projects on GitHub

Testing trading strategies against historical market data.

As of , the most-starred Backtesting projects on GitHub are TradingAgents (124.2K stars), daily_stock_analysis (75.4K stars) and ai-hedge-fund (64.9K stars). GitHub.Locker tracks 32 Backtesting repositories with 798K stars combined. The fastest-growing on November 30 was daily_stock_analysis, with +147 stars in a day.

32Projects
798KStars in total
+1.1KStars in a day

Hot right now

Most stars gained in a day · Nov 30

The all-time top

32 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.

    124.2K
  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.

    Deploy on Railway
    75.4K
  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.9K
  1. 4

    freqtrade

    57.4Kfreqtrade/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.

    Deploy on Railway
  2. 5

    qlib

    50.7Kmicrosoft/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

    Kronos

    48.3Kshiyu-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.

  4. 7

    vnpy

    46.6Kvnpy/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.

  5. 8

    Vibe-Trading

    39.1KHKUDS/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

    31.9Knautechsystems/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

    31Kwilsonfreitas/awesome-quant · Python

    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.8Kmementum/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

    22.6KQuantConnect/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.9Kstefan-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

    21.3Khummingbot/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

    abu

    19.2Kbbfamily/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.

  13. 16

    awesome-systematic-trading

    15.5Kpaperswithbacktest/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.

  14. 17

    stock

    15.3Kmyhhub/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

    QuantDinger

    13.8KOpenByteInc/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.

  16. 19

    QUANTAXIS

    11.4Kyutiansut/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.

  17. 20

    quant-trading

    11.3Kje-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.

  18. 21

    StockSharp

    11.1KStockSharp/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.

  19. 22

    day-trader-skill

    10.3KJakeschincariol/day-trader-skill · Python

    A pack of 11 Claude skills for day trading that scan charts for setups, track breaking news, time entries and exits, and let you replay a trade thousands of times before risking real money.

  20. 23

    claude-trading-skills

    9.1Ktradermonty/claude-trading-skills · Python

    A toolkit of Claude Skills for equity investors, covering market regime and breadth analysis, technical charts, economic calendars, screeners, trade planning, journaling and strategy research. It structures your decision process and is not a signal service or a promise of profit.

  21. 24

    tick-stock-panel

    8.1Kshy3130/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.

    Deploy on Railway
  22. 25

    TradingView-API

    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

    Vibe-Research

    3.8Ksimonlin1212/Vibe-Research · TypeScript

    Vibe Research is a research workbench for China A-shares, US stocks and Hong Kong stocks. It puts watchlist and portfolio P&L, daily market review, industry research, deep-dive stock research, backtesting and a research-report library all on one page, with research records and files kept on your own computer.

  24. 27

    anti-gambling-trader-tw

    1.2Kmars-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.

  25. 28

    CNEquity

    1.1KrootSunc/CNEquity · Python

    CNEquity is local data infrastructure for the Chinese A-share market: it organizes stock quotes, futures, fundamentals, corporate events and capital-flow data from multiple sources into a local Parquet data lake with incremental collection, resumable failures, quality audits and unified querying.

  26. 29

    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.

  27. 30

    quantjourney-bt

    669QuantJourneyOrg/quantjourney-bt · Python

    QuantJourney Backtester is a Python-native backtesting engine for reproducible portfolio research. It turns strategy ideas into auditable research packets: signals become target weights or orders, orders become simulated fills, and NAV is reconstructed from the resulting portfolio state.

  28. 31

    deepseek-harness-quant

    344yuanwang589-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.

  29. 32

    bytex

    267BYTEX-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.

Often tagged together