Trading repositories on GitHub, sorted by stars
155 repositories read from GitHub. 70 are on the main list.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
How a repository gets on the main list. Four fields, all read from its GitHub record: it is not archived, it was pushed to within the twelve months before the reading, it was created more than twelve months before the reading, and it has at least fifty stars. Order within a section is by stars. Stars measure attention, not quality or safety, and nothing here is a recommendation to trade or a review of anyone's code. Descriptions are each repository's own words.
Star velocity: unmeasurable. This register holds one reading for each repository, and a rate needs two. Every count is logged with the time it was read.
Learn from
7 listed
Courses, notebooks and reading lists. 7 listed.
| Repository | Stars | Language | Licence | Last push | Description, in its own words |
|---|---|---|---|---|---|
| wilsonfreitas/awesome-quant GitHub | 29,963 | HTML | Not stated | A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance) | |
| stefan-jansen/machine-learning-for-trading GitHub | 21,234 | Jupyter Notebook | MIT | Code for Machine Learning for Trading, 3rd edition, from data sourcing to live execution. | |
| paperswithbacktest/awesome-systematic-trading GitHub | 14,551 | Python | Not stated | A curated list of awesome libraries, packages, strategies, books, blogs, tutorials for systematic trading. | |
| je-suis-tm/quant-trading GitHub | 10,926 | Python | Apache-2.0 | Python quantitative trading strategies including VIX Calculator, Pattern Recognition, Commodity Trading Advisor, Monte Carlo, Options Straddle, Shooting Star, London Breakout, Heikin-Ashi, Pair Trading, RSI, Bollinger Bands, Parabolic SAR, Dual Thrust, Awesome, MACD | |
| cantaro86/Financial-Models-Numerical-Methods GitHub | 7,485 | Jupyter Notebook | AGPL-3.0 | Collection of notebooks about quantitative finance, with interactive python code. | |
| georgezouq/awesome-ai-in-finance GitHub | 6,636 | Not stated | CC0-1.0 | A curated list of awesome LLMs & deep learning strategies & tools in financial market. | |
| PacktPublishing/Python-for-Finance-Cookbook-2E GitHub | 157 | Jupyter Notebook | MIT | The repository of "Python for Finance Cookbook" 2nd edition |
Backtesting and research
12 listed
Frameworks for testing a rule on past prices. 12 listed.
| Repository | Stars | Language | Licence | Last push | Description, in its own words |
|---|---|---|---|---|---|
| microsoft/qlib GitHub | 49,155 | Python | MIT | Qlib is an AI-oriented Quant investment platform that aims to use AI tech to empower Quant Research, from exploring ideas to implementing productions. Qlib supports diverse ML modeling paradigms, including supervised learning, market dynamics modeling, and RL, and is now equipped with https://github.com/microsoft/RD-Agent to automate R&D process. | |
| nautechsystems/nautilus_trader GitHub | 29,633 | Rust | LGPL-3.0 | Production-grade Rust-native trading engine with deterministic event-driven architecture | |
| QuantConnect/Lean GitHub | 21,864 | C# | Apache-2.0 | Lean Algorithmic Trading Engine by QuantConnect (Python, C#) | |
| AI4Finance-Foundation/FinRL GitHub | 16,555 | Jupyter Notebook | MIT | FinRL®: Financial Reinforcement Learning. | |
| goldmansachs/gs-quant GitHub | 13,061 | Python | Apache-2.0 | Python toolkit for quantitative finance | |
| polakowo/vectorbt GitHub | 9,277 | Python | Not stated | The backtesting engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one. | |
| kernc/backtesting.py GitHub | 9,011 | Python | AGPL-3.0 | Backtest trading strategies in Python. | |
| ranaroussi/quantstats GitHub | 7,678 | Python | Apache-2.0 | Portfolio analytics for quants, written in Python | |
| pst-group/pysystemtrade GitHub | 3,538 | Python | GPL-3.0 | Systematic Trading in python | |
| pmorissette/bt GitHub | 2,995 | Python | MIT | bt - flexible backtesting for Python | |
| Lumiwealth/lumibot GitHub | 2,102 | Python | GPL-3.0 | AI agents that actually place the trade. 12 brokers, real backtests, stocks options futures forex crypto and prediction markets. | |
| stefan-jansen/zipline-reloaded GitHub | 1,952 | Python | Apache-2.0 | Zipline, a Pythonic Algorithmic Trading Library |
Data, indicators and charts
7 listed
Getting prices in, and turning them into numbers and pictures. 7 listed.
| Repository | Stars | Language | Licence | Last push | Description, in its own words |
|---|---|---|---|---|---|
| openbq-org/OpenBB GitHub | 73,862 | Python | Not stated | Open Data Platform for analysts, quants and AI agents. | |
| ranaroussi/yfinance GitHub | 25,435 | Python | Apache-2.0 | Download market data from Yahoo! Finance's API | |
| tradingview/lightweight-charts GitHub | 17,477 | TypeScript | Apache-2.0 | Performant financial charts built with HTML5 canvas | |
| TA-Lib/ta-lib-python GitHub | 12,268 | Cython | BSD-2-Clause | Python wrapper for TA-Lib (http://ta-lib.org/). | |
| bukosabino/ta GitHub | 5,233 | Jupyter Notebook | MIT | Technical Analysis Library using Pandas and Numpy | |
| pydata/pandas-datareader GitHub | 3,271 | Python | Not stated | Extract data from a wide range of Internet sources into a pandas DataFrame. | |
| cuemacro/findatapy GitHub | 2,129 | Python | Apache-2.0 | Python library to download market data via Bloomberg, Eikon, Quandl, Yahoo etc. |
Broker and platform API clients
30 listed
Libraries and tools that talk to a broker or platform API. 30 listed.
| Repository | Stars | Language | Licence | Last push | Description, in its own words |
|---|---|---|---|---|---|
| ib-api-reloaded/ib_async GitHub | 1,750 | Python | BSD-2-Clause | Python sync/async framework for Interactive Brokers API (replaces ib_insync) | |
| alpacahq/alpaca-py GitHub | 1,542 | Python | Apache-2.0 | The Official Python SDK for Alpaca API | |
| EA31337/EA31337 GitHub | 1,307 | C++ | GPL-3.0 | EA31337 Lite, Advanced and Rider - Forex multi-strategy trading robot for MT4/MT5 platforms | |
| gnzsnz/ib-gateway-docker GitHub | 1,263 | Shell | MIT | Docker image with IB Gateway/TWS and IBC | |
| Voyz/ibeam GitHub | 857 | Python | Apache-2.0 | IBeam is an authentication and maintenance tool used for the Interactive Brokers Client Portal Web API Gateway. | |
| alpacahq/alpaca-backtrader-api GitHub | 704 | Python | Apache-2.0 | Alpaca Trading API integrated with backtrader | |
| vdemydiuk/mtapi GitHub | 698 | C# | MIT | MetaTrader API (terminal bridge) | |
| rburkholder/trade-frame GitHub | 679 | C++ | Not stated | C++ 17 based library (with sample applications) for testing equities, futures, currencies, etfs & options based automated trading ideas using DTN IQFeed real time data feed and Interactive Brokers (IB TWS API) for trade execution. libtorch/lstm/cuda demo. Support for Alpaca & Phemex. Notifications via Telegram. | |
| geraked/metatrader5 GitHub | 651 | MQL5 | MIT | Implementation of Trading Strategies for Backtesting in MetaTrader 5 (MT5) Using MQL5 Programming Language, Free Open-Source Trading Bots (Expert Advisors) for MT5 | |
| alpacahq/alpaca-trade-api-js GitHub | 600 | TypeScript | Apache-2.0 | Node.js library for Alpaca Trade API. | |
| EarnForex/PositionSizer GitHub | 596 | MQL5 | Apache-2.0 | Calculate your position size based on the risk and account size and execute your trades with this free MetaTrader expert advisor. | |
| Voyz/ibind GitHub | 447 | Python | Apache-2.0 | IBind is a REST and WebSocket client library for Interactive Brokers Client Portal Web API. | |
| alpacahq/alpaca-trade-api-go GitHub | 430 | Go | Apache-2.0 | Go client for Alpaca's trade API | |
| gmag11/MetaTrader5-Docker GitHub | 400 | Shell | MIT | Docker image that runs Metatrader 5 with VNC web server | |
| wboayue/rust-ibapi GitHub | 389 | Rust | MIT | An unofficial Rust client for the Interactive Brokers TWS API. Async and blocking, for TWS and IB Gateway. | |
| ig-python/trading-ig GitHub | 376 | Python | BSD-3-Clause | A lightweight Python wrapper for the IG Markets API | |
| stoqey/ib GitHub | 333 | TypeScript | MIT | Interactive Brokers TWS/IB Gateway API client library for Node.js (TS) | |
| MegaJoctan/ML5 GitHub | 272 | MQL5 | MIT | Machine Learning repository for MQL5 | |
| lucas-campagna/mt5linux GitHub | 227 | Python | MIT | MetaTrader5 for linux users | |
| Joaopeuko/Mql5-Python-Integration GitHub | 213 | Python | MIT | I created this library to streamline the process of developing an Expert Advisor in MQL5. While MQL5 development can be complex, the same task is more straightforward in Python. | |
| EarnForex/MarketProfile GitHub | 200 | MQL5 | Apache-2.0 | Market Profile indicator for MT4, MT5, and cTrader by EarnForex.com | |
| fxcm/ForexConnectAPI GitHub | 193 | HTML | Not stated | Designed to trade, retrieve live/history price. Intended to be used to build auto-trading robots, custom trading on FXCM accounts. | |
| Ichinga-Samuel/aiomql GitHub | 150 | Python | MIT | Asynchronous Python Library For MetaTrader 5 | |
| spotware/ctrader-algo-samples GitHub | 137 | C# | MIT | cBot / Indicator Samples of cTrader Automate API | |
| hootnot/saxo_openapi GitHub | 109 | Python | MIT | The saxo_openapi package provides easy access to SAXO Bank OpenAPI (https://www.developer.saxo/openapi/learn). Checkout the Jupyter notebooks covering most aspects of the API. | |
| abhidp/tradingview-to-metatrader5 GitHub | 94 | Python | MIT | TV2MT5 - a Windows app to copy trade executions in realtime from TradingView to MetaTrader5. Bridge the gap between TradingView's superior charting platform and MetaTrader5's robust trading ecosystem. Execute trades seamlessly, manage positions effortlessly - all while using your preferred platforms. | |
| metaapi/metaapi-python-sdk GitHub | 92 | Not stated | Not stated | Python SDK for MetaApi, a professional cloud forex trading API for MetaTrader platform which supports both MetaTrader MetaTrader 5 and MetaTrader 4. Free usage tier available. | |
| deriv-com/deriv-api GitHub | 76 | JavaScript | MIT | Websocket API for deriv.app | |
| SaxoBank/openapi-samples-js GitHub | 66 | JavaScript | Apache-2.0 | Sample code demonstrating OpenAPI interactions in JavaScript | |
| fxcm/JavaAPI GitHub | 50 | Not stated | Not stated | a wrapper SDK of FIX API, provides clients with a fully functioning programmable API into the FXCM trading platform, including streaming live price, get historical price and live trades. |
Bots and execution frameworks
8 listed
Complete trading systems. Several are built for crypto exchanges, which are outside this site's broker coverage. 8 listed.
| Repository | Stars | Language | Licence | Last push | Description, in its own words |
|---|---|---|---|---|---|
| freqtrade/freqtrade GitHub | 55,042 | Python | GPL-3.0 | Free, open source crypto trading bot | |
| vnpy/vnpy GitHub | 45,708 | Python | MIT | 基于Python的开源量化交易平台开发框架 | |
| ccxt/ccxt GitHub | 44,254 | Python | MIT | A unified trading API with more than 100 crypto exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java / Rust | |
| hummingbot/hummingbot GitHub | 20,308 | Python | Apache-2.0 | Open source software that helps you create and deploy high-frequency crypto trading bots | |
| StockSharp/StockSharp GitHub | 10,829 | C# | Not stated | Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options). | |
| jesse-ai/jesse GitHub | 8,611 | Python | MIT | An advanced crypto trading bot written in Python | |
| tensortrade-org/tensortrade GitHub | 7,193 | Python | Apache-2.0 | An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents. | |
| Drakkar-Software/OctoBot GitHub | 6,679 | Python | GPL-3.0 | Free open source crypto trading bot to automate AI, Grid, DCA and TradingView strategies on Binance, Hyperliquid and 15+ exchanges, with a simple interface. |
AI agents and MCP servers
6 listed
Tools that connect an AI assistant to a trading API. 6 listed.
| Repository | Stars | Language | Licence | Last push | Description, in its own words |
|---|---|---|---|---|---|
| atilaahmettaner/tradingview-mcp GitHub | 4,914 | Python | MIT | TradingView MCP server, real-time market data, technical analysis, screeners & backtesting for Claude, ChatGPT, Cursor & any MCP client. Stocks, crypto, forex & futures across global exchanges. Hosted or self-host. | |
| alpacahq/alpaca-mcp-server GitHub | 1,004 | Python | MIT | Alpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English directly from your favorite LLM tools and IDEs | |
| ariadng/metatrader-mcp-server GitHub | 820 | Python | MIT | Model Context Protocol (MCP) to enable AI LLMs to trade using MetaTrader platform | |
| Qoyyuum/mcp-metatrader5-server GitHub | 227 | Python | Not stated | A Model Context Protocol (MCP) server for interacting with the MetaTrader 5 trading platform. This server provides AI assistants with tools and resources to access market data, perform trading operations, and analyze trading history. | |
| code-rabi/interactive-brokers-mcp GitHub | 219 | JavaScript | MIT | Interactive Brokers MCP Server | |
| RohanAnandPandit/trading212-mcp-server GitHub | 62 | Python | MIT | The Trading212 MCP server is a Model Context Protocol server implementation that provides seamless data connectivity to the Trading212 trading platform enabling advanced interaction capabilities via the public beta API. |
Under a year old
Created within the twelve months before the reading, so there is not yet a year of history to go on. 27 repositories.
- ErTasselli/OpenTerminal1,378 stars. Created 28 Jul 2026.
- rosemarycox5334-debug/AlphaMaster622 stars. Created 10 Jul 2026.
- Oft3r/agentic-trading-desk306 stars. Created 2 Jul 2026.
- TetreesEX/TetreesAgent_EX304 stars. Created 29 Aug 2026.
- YizhiSong/FriesTrader205 stars. Created 17 Jul 2026.
- alpacahq/alpaca-skills153 stars. Created 16 Jun 2026.
- JesusRS1/stock-trade-finance-api138 stars. Created 14 Jul 2026.
- Weebapp003/tradingview-mcp135 stars. Created 9 Jul 2026.
- pueschel88/Tradingview-MCP133 stars. Created 13 Jul 2026.
- trading212-labs/agent-skills128 stars. Created 3 Feb 2026.
- Syed-Imran88/MT5-Exposure-Mesh-Analyzer118 stars. Created 28 Jun 2026.
- 2023ai/ftmo-risk-control94 stars. Created 23 Aug 2026.
- LuxAlgo/luxalgo-mcp-server88 stars. Created 10 Aug 2026.
- moondevonyt/Trading-View-MCP-for-AI-by-Moon-Dev83 stars. Created 29 Aug 2026.
- G-OTW/OpenTraderWorld61 stars. Created 27 Jun 2026.
- INo-xious/stockbit-mcp52 stars. Created 1 Aug 2026.
- HimanshuJ16/Algo-Trading-Skills46 stars. Created 24 Jul 2026.
- digistoremaster/metatrader-to-ibkr-tws-api-bridge36 stars. Created 2 Aug 2026.
- psyb0t/mt5-httpapi28 stars. Created 15 Feb 2026.
- IBKR-BouncyBot/IBKR-Trading-Bot27 stars. Created 17 Jul 2026.
- LuxAlgo/broker-sdk26 stars. Created 24 Aug 2026.
- tastytrade/tastytrade-mcp24 stars. Created 14 Aug 2026.
- adwiteeymauriya/ibkr-portfolio-builder-mcp19 stars. Created 6 Jun 2026.
- pedrobraiti/agentic-trading-mcp13 stars. Created 21 Jun 2026.
- capital-com-sv/capital-mcp7 stars. Created 16 Apr 2026.
- henrysouchien/ibkr-mcp3 stars. Created 24 Feb 2026.
- mphinance/awesome-broker-mcp1 stars. Created 17 Jul 2026.
Archived, or not pushed to for a year
Well known names appear here. An archived repository still works until it does not: check for a maintained successor before you build on one. 51 repositories.
- mementum/backtrader23,396 stars. Last push 19 Aug 2024.
- quantopian/zipline20,137 stars. Last push 13 Feb 2024.
- firmai/financial-machine-learning8,804 stars. Last push 3 Jan 2025.
- quantopian/pyfolio6,423 stars. Last push 23 Dec 2023.
- quantopian/alphalens4,461 stars. Last push 12 Feb 2024.
- erdewit/ib_insync3,283 stars. Archived by its owner. Last push 14 Mar 2024.
- jamesmawm/High-Frequency-Trading-Model-with-IB2,930 stars. Last push 29 May 2025.
- quantopian/research_public2,883 stars. Last push 3 Nov 2020.
- alpacahq/alpaca-trade-api-python1,881 stars. Archived by its owner. Last push 2 Dec 2024.
- LastAncientOne/Deep_Learning_Machine_Learning_Stock1,786 stars. Last push 1 Mar 2024.
- IbcAlpha/IBC1,603 stars. Archived by its owner. Last push 1 Sep 2026.
- blampe/IbPy1,424 stars. Archived by its owner. Last push 19 Jan 2017.
- kieran-mackle/AutoTrader1,270 stars. Archived by its owner. Last push 4 May 2025.
- TheSnowGuru/PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop1,059 stars. Last push 5 May 2025.
- InteractiveBrokers/tws-api-public643 stars. Last push 23 Jan 2018.
- hootnot/oanda-api-v20416 stars. Last push 11 Dec 2023.
- areed1192/interactive-broker-python-api410 stars. Last push 2 Aug 2023.
- gofinance/ib400 stars. Last push 25 Oct 2021.
- pilwon/node-ib395 stars. Last push 24 Jan 2023.
- darwinex/dwx-zeromq-connector374 stars. Last push 25 May 2022.
- mcf-long-short/ibkr-options-volatility-trading374 stars. Last push 23 Jan 2025.
- oanda/oandapy340 stars. Last push 10 Mar 2021.
- ranaroussi/ezibpy334 stars. Archived by its owner. Last push 24 Jul 2022.
- trentstauff/FXBot311 stars. Last push 1 Jun 2025.
- rediar/InteractiveBrokers-Algo-Trading-API275 stars. Last push 12 Jun 2023.
- unageanu/jiji2249 stars. Last push 30 Apr 2021.
- g-make-it/IG_Trading_Algo_Scripts_Python228 stars. Last push 16 Mar 2022.
- slowfound/metatrader5-quant-server-python221 stars. Last push 25 Dec 2024.
- spotware/OpenApiPy192 stars. Last push 7 Aug 2024.
- yhilpisch/tpqoa190 stars. Last push 27 Jun 2023.
- sparkstartconsulting/IBKR-API-Rust174 stars. Last push 21 May 2024.
- tg12/FAIG156 stars. Archived by its owner. Last push 16 May 2026.
- devcartel/pymt5148 stars. Last push 2 Feb 2023.
- happydasch/btoandav20135 stars. Last push 2 Nov 2022.
- ejtraderLabs/ejtraderMT120 stars. Last push 6 Feb 2024.
- ok24601/etoro-api107 stars. Last push 14 Apr 2023.
- spotware/OpenAPI.Net96 stars. Last push 28 Jun 2024.
- mkhaled87/etoro-api67 stars. Last push 8 Feb 2021.
- federico123579/XTBApi64 stars. Archived by its owner. Last push 27 Nov 2023.
- TradeLocker/tradelocker-python57 stars. Last push 18 Dec 2024.
- rickykim93/gcapi-python50 stars. Last push 26 Jul 2024.
- bennycode/ig-trading-api49 stars. Archived by its owner. Last push 1 Sep 2024.
- benjaminsabella/DxTrade-Api-Go42 stars. Last push 11 Sep 2024.
- caiomborges/Python-XTB-API41 stars. Last push 15 Oct 2023.
- deriv-com/python-deriv-api36 stars. Archived by its owner. Last push 3 Dec 2024.
- ArjunDivecha/ibkr-mcp-server35 stars. Archived by its owner. Last push 23 Jul 2025.
- capital-com-sv/capital-api-postman25 stars. Last push 23 Oct 2023.
- spotware/ctrader-open-api-v2-java-example23 stars. Last push 19 Sep 2024.
- capital-com-sv/api-java-samples17 stars. Last push 31 Mar 2025.
- QuantConnect/Lean.Brokerages.FXCM17 stars. Archived by its owner. Last push 18 Jun 2019.
- SaxoBank/openapi-samples-csharp17 stars. Last push 4 Sep 2025.
How images are chosen
Some rows and pages show an image taken from the repository itself. An image is used only when the repository publishes it in its own README or docs folder, the repository's licence allows copies to be redistributed, and nothing there says the images are licensed separately. Each one was looked at before it was copied. Images that are mostly a broker's or a platform's branding, that show what looks like a real person's account, or that read as a promise of profit are left out. A row with no image is no lesser a repository: most often its README keeps its images somewhere other than the repository, or it has no licence that allows copying.
Every image is credited on its repository's page: what it shows, the copyright holder as the licence file names them, the licence with a link to its text, and the source file at the commit it was copied from. Images are resized and converted, and otherwise unchanged. They stay the work of their authors, and the CC BY 4.0 licence on this site's registers does not cover them.
If an image is yours and you want it taken down or credited differently, use the corrections route. There is no address to write to yet, as that page explains. One will be printed there as soon as the publisher's details are published.
Every record on this page was read on from the GitHub repository endpoint, not from search.