Python Trading

Open-source Python projects categorized as Trading

Top 23 Python Trading Projects

  1. ccxt

    A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

    Project mention: Revolutionize Your Crypto Trading with CCXT! | dev.to | 2025-05-07

    View the Project on GitHub

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. vnpy

    基于Python的开源量化交易平台开发框架

  4. backtrader

    Python Backtesting library for trading strategies

    Project mention: backtrader VS QTradeX-Algo-Trading-SDK - a user suggested alternative | libhunt.com/r/backtrader | 2025-05-28
  5. hummingbot

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

    Project mention: Complete Hummingbot Arbitrage Usage Guide | dev.to | 2025-07-23

    # 1. Clone repository git clone https://github.com/hummingbot/hummingbot.git cd hummingbot # 2. Install dependencies sudo apt update sudo apt install python3.10-dev python3-pip build-essential # 3. Install Hummingbot pip install -e . # 4. Run python bin/hummingbot.py

  6. backtesting.py

    🔎 📈 🐍 💰 Backtest trading strategies in Python.

    Project mention: backtesting.py VS QTradeX-Algo-Trading-SDK - a user suggested alternative | libhunt.com/r/backtesting.py | 2025-05-28
  7. vectorbt

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

    Project mention: vectorbt VS QTradeX-Algo-Trading-SDK - a user suggested alternative | libhunt.com/r/vectorbt | 2025-05-28
  8. Crypto-Signal

    Github.com/CryptoSignal - Trading & Technical Analysis Bot - 4,100+ stars, 1,100+ forks

  9. 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
  10. 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.

  11. freqtrade-strategies

    Free trading strategies for Freqtrade bot

  12. mlfinlab

    MlFinLab helps portfolio managers and traders who want to leverage the power of machine learning by providing reproducible, interpretable, and easy to use tools.

  13. pybroker

    Algorithmic Trading in Python with Machine Learning

  14. binance-connector-python

    Simple connector to Binance Public API

  15. cryptofeed

    Cryptocurrency Exchange Websocket Data Feed Handler

  16. blankly

    🚀 💸 Easily build, backtest and deploy your algo in just a few lines of code. Trade stocks, cryptos, and forex across exchanges w/ one package.

    Project mention: blankly VS QTradeX-Algo-Trading-SDK - a user suggested alternative | libhunt.com/r/blankly | 2025-05-28
  17. gym-anytrading

    The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)

  18. pycryptobot

    Python Crypto Bot (PyCryptoBot)

  19. robin_stocks

    This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at

  20. MachineLearningStocks

    Using python and scikit-learn to make stock predictions

  21. coinbasepro-python

    The unofficial Python client for the Coinbase Pro API

  22. alpaca-trade-api-python

    Python client for Alpaca's trade API

  23. surpriver

    Find big moving stocks before they move using machine learning and anomaly detection

  24. volatility-trading

    A complete set of volatility estimators based on Euan Sinclair's Volatility Trading

  25. TradingGym

    Trading and Backtesting environment for training reinforcement learning agent or simple rule base algo.

  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 Trading discussion

Python Trading related posts

  • Complete Hummingbot Arbitrage Usage Guide

    3 projects | dev.to | 23 Jul 2025
  • QTradeX-Algo-Trading-SDK alternatives - nautilus_trader, backtesting.py, and backtrader

    4 projects | 27 May 2025
  • Show HN: High-Frequency Trading and Market-Making Backtesting Tool with Examples

    6 projects | news.ycombinator.com | 21 Jun 2024
  • Creating a ChatGPT crypto trading bot

    2 projects | dev.to | 26 May 2024
  • tda-api: NEW Derivatives and Hedging - star count:1219.0

    1 project | /r/algoprojects | 9 Dec 2023
  • tda-api: NEW Derivatives and Hedging - star count:1219.0

    1 project | /r/algoprojects | 8 Dec 2023
  • tda-api: NEW Derivatives and Hedging - star count:1219.0

    1 project | /r/algoprojects | 7 Dec 2023
  • A note from our sponsor - Stream
    getstream.io | 23 Dec 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Index

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

# Project Stars
1 ccxt 40,253
2 vnpy 34,720
3 backtrader 19,441
4 hummingbot 15,397
5 backtesting.py 7,656
6 vectorbt 6,314
7 Crypto-Signal 5,313
8 OctoBot 5,022
9 freqtrade-strategies 4,735
10 mlfinlab 4,373
11 pybroker 2,973
12 binance-connector-python 2,664
13 cryptofeed 2,636
14 blankly 2,395
15 gym-anytrading 2,354
16 pycryptobot 2,050
17 robin_stocks 1,979
18 MachineLearningStocks 1,910
19 coinbasepro-python 1,848
20 alpaca-trade-api-python 1,844
21 surpriver 1,833
22 volatility-trading 1,784
23 TradingGym 1,750

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

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