Broker API HubMenu

Trading repositories on GitHub, sorted by stars

155 repositories read from GitHub. 70 are on the main list.

Independent and unofficialRead from GitHub Repository of the day

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.

RepositoryStarsLanguageLicenceLast pushDescription, in its own words
wilsonfreitas/awesome-quant GitHub29,963HTMLNot statedA curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)
stefan-jansen/machine-learning-for-trading GitHub21,234Jupyter NotebookMITCode for Machine Learning for Trading, 3rd edition, from data sourcing to live execution.
paperswithbacktest/awesome-systematic-trading GitHub14,551PythonNot statedA curated list of awesome libraries, packages, strategies, books, blogs, tutorials for systematic trading.
je-suis-tm/quant-trading GitHub10,926PythonApache-2.0Python 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 GitHub7,485Jupyter NotebookAGPL-3.0Collection of notebooks about quantitative finance, with interactive python code.
georgezouq/awesome-ai-in-finance GitHub6,636Not statedCC0-1.0A curated list of awesome LLMs & deep learning strategies & tools in financial market.
PacktPublishing/Python-for-Finance-Cookbook-2E GitHub157Jupyter NotebookMITThe repository of "Python for Finance Cookbook" 2nd edition

Backtesting and research

12 listed

Frameworks for testing a rule on past prices. 12 listed.

RepositoryStarsLanguageLicenceLast pushDescription, in its own words
microsoft/qlib GitHub49,155PythonMITQlib 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 GitHub29,633RustLGPL-3.0Production-grade Rust-native trading engine with deterministic event-driven architecture
QuantConnect/Lean GitHub21,864C#Apache-2.0Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
AI4Finance-Foundation/FinRL GitHub16,555Jupyter NotebookMITFinRL®: Financial Reinforcement Learning.
goldmansachs/gs-quant GitHub13,061PythonApache-2.0Python toolkit for quantitative finance
polakowo/vectorbt GitHub9,277PythonNot statedThe backtesting engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.
kernc/backtesting.py GitHub9,011PythonAGPL-3.0Backtest trading strategies in Python.
ranaroussi/quantstats GitHub7,678PythonApache-2.0Portfolio analytics for quants, written in Python
pst-group/pysystemtrade GitHub3,538PythonGPL-3.0Systematic Trading in python
pmorissette/bt GitHub2,995PythonMITbt - flexible backtesting for Python
Lumiwealth/lumibot GitHub2,102PythonGPL-3.0AI agents that actually place the trade. 12 brokers, real backtests, stocks options futures forex crypto and prediction markets.
stefan-jansen/zipline-reloaded GitHub1,952PythonApache-2.0Zipline, a Pythonic Algorithmic Trading Library

Data, indicators and charts

7 listed

Getting prices in, and turning them into numbers and pictures. 7 listed.

RepositoryStarsLanguageLicenceLast pushDescription, in its own words
openbq-org/OpenBB GitHub73,862PythonNot statedOpen Data Platform for analysts, quants and AI agents.
ranaroussi/yfinance GitHub25,435PythonApache-2.0Download market data from Yahoo! Finance's API
tradingview/lightweight-charts GitHub17,477TypeScriptApache-2.0Performant financial charts built with HTML5 canvas
TA-Lib/ta-lib-python GitHub12,268CythonBSD-2-ClausePython wrapper for TA-Lib (http://ta-lib.org/).
bukosabino/ta GitHub5,233Jupyter NotebookMITTechnical Analysis Library using Pandas and Numpy
pydata/pandas-datareader GitHub3,271PythonNot statedExtract data from a wide range of Internet sources into a pandas DataFrame.
cuemacro/findatapy GitHub2,129PythonApache-2.0Python 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.

RepositoryStarsLanguageLicenceLast pushDescription, in its own words
ib-api-reloaded/ib_async GitHub1,750PythonBSD-2-ClausePython sync/async framework for Interactive Brokers API (replaces ib_insync)
alpacahq/alpaca-py GitHub1,542PythonApache-2.0The Official Python SDK for Alpaca API
EA31337/EA31337 GitHub1,307C++GPL-3.0EA31337 Lite, Advanced and Rider - Forex multi-strategy trading robot for MT4/MT5 platforms
gnzsnz/ib-gateway-docker GitHub1,263ShellMITDocker image with IB Gateway/TWS and IBC
Voyz/ibeam GitHub857PythonApache-2.0IBeam is an authentication and maintenance tool used for the Interactive Brokers Client Portal Web API Gateway.
alpacahq/alpaca-backtrader-api GitHub704PythonApache-2.0Alpaca Trading API integrated with backtrader
vdemydiuk/mtapi GitHub698C#MITMetaTrader API (terminal bridge)
rburkholder/trade-frame GitHub679C++Not statedC++ 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 GitHub651MQL5MITImplementation 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 GitHub600TypeScriptApache-2.0Node.js library for Alpaca Trade API.
EarnForex/PositionSizer GitHub596MQL5Apache-2.0Calculate your position size based on the risk and account size and execute your trades with this free MetaTrader expert advisor.
Voyz/ibind GitHub447PythonApache-2.0IBind is a REST and WebSocket client library for Interactive Brokers Client Portal Web API.
alpacahq/alpaca-trade-api-go GitHub430GoApache-2.0Go client for Alpaca's trade API
gmag11/MetaTrader5-Docker GitHub400ShellMITDocker image that runs Metatrader 5 with VNC web server
wboayue/rust-ibapi GitHub389RustMITAn unofficial Rust client for the Interactive Brokers TWS API. Async and blocking, for TWS and IB Gateway.
ig-python/trading-ig GitHub376PythonBSD-3-ClauseA lightweight Python wrapper for the IG Markets API
stoqey/ib GitHub333TypeScriptMITInteractive Brokers TWS/IB Gateway API client library for Node.js (TS)
MegaJoctan/ML5 GitHub272MQL5MITMachine Learning repository for MQL5
lucas-campagna/mt5linux GitHub227PythonMITMetaTrader5 for linux users
Joaopeuko/Mql5-Python-Integration GitHub213PythonMITI 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 GitHub200MQL5Apache-2.0Market Profile indicator for MT4, MT5, and cTrader by EarnForex.com
fxcm/ForexConnectAPI GitHub193HTMLNot statedDesigned to trade, retrieve live/history price. Intended to be used to build auto-trading robots, custom trading on FXCM accounts.
Ichinga-Samuel/aiomql GitHub150PythonMITAsynchronous Python Library For MetaTrader 5
spotware/ctrader-algo-samples GitHub137C#MITcBot / Indicator Samples of cTrader Automate API
hootnot/saxo_openapi GitHub109PythonMITThe 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 GitHub94PythonMITTV2MT5 - 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 GitHub92Not statedNot statedPython 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 GitHub76JavaScriptMITWebsocket API for deriv.app
SaxoBank/openapi-samples-js GitHub66JavaScriptApache-2.0Sample code demonstrating OpenAPI interactions in JavaScript
fxcm/JavaAPI GitHub50Not statedNot stateda 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.

RepositoryStarsLanguageLicenceLast pushDescription, in its own words
freqtrade/freqtrade GitHub55,042PythonGPL-3.0Free, open source crypto trading bot
vnpy/vnpy GitHub45,708PythonMIT基于Python的开源量化交易平台开发框架
ccxt/ccxt GitHub44,254PythonMITA unified trading API with more than 100 crypto exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java / Rust
hummingbot/hummingbot GitHub20,308PythonApache-2.0Open source software that helps you create and deploy high-frequency crypto trading bots
StockSharp/StockSharp GitHub10,829C#Not statedAlgorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options).
jesse-ai/jesse GitHub8,611PythonMITAn advanced crypto trading bot written in Python
tensortrade-org/tensortrade GitHub7,193PythonApache-2.0An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents.
Drakkar-Software/OctoBot GitHub6,679PythonGPL-3.0Free 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.

RepositoryStarsLanguageLicenceLast pushDescription, in its own words
atilaahmettaner/tradingview-mcp GitHub4,914PythonMITTradingView 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 GitHub1,004PythonMITAlpaca’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 GitHub820PythonMITModel Context Protocol (MCP) to enable AI LLMs to trade using MetaTrader platform
Qoyyuum/mcp-metatrader5-server GitHub227PythonNot statedA 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 GitHub219JavaScriptMITInteractive Brokers MCP Server
RohanAnandPandit/trading212-mcp-server GitHub62PythonMITThe 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.

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.

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.

Sections