Python Trading

Open-source Python projects categorized as Trading | Edit details

Top 23 Python Trading Projects

  • backtrader

    Python Backtesting library for trading strategies

    Project mention: Backtrader looks good but I am having a problem | | 2022-05-16
  • trump2cash

    A stock trading bot powered by Trump tweets

    Project mention: TikTokers Are Trading Stocks By Copying What Members Of Congress Do | | 2021-09-22

    This article is kind silly. The disclosures are delayed. What is probably more relevant is this bot. I don't endorse it nor have never run it. But it's an interesting concept

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • hummingbot

    Hummingbot is open source software that helps you build trading bots that run on any exchange or blockchain

    Project mention: Launching HBOT Rewards on Hummingbot Miner | | 2022-04-04

    Find out more at or follow on Twitter.

  • Crypto-Signal - #1 Quant Trading & Technical Analysis Bot - 3,100+ stars, 900+ forks

    Project mention: What do you think of trading bots? | | 2022-01-24

    Step 2: create trading signals that will signal you when go long/short, u have also alot of open source repos for that, like:

  • jesse

    An advanced crypto trading bot written in Python

    Project mention: Thoughts on Jesse trading bot? | | 2021-10-02

    Here’s the repo for those that are interested:

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

    Project mention: mlfinlab: open source library maintained by hudson and thames though much of the content has moved to a subscription model. Idea is to implement academic research in python code and aggregate it as a package. Sources from [Journal of financial data s | | 2022-05-14
  • pandas-ta

    Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators

    Project mention: Predição de ações na bolsa de valores com Python e Facebook Prophet | | 2022-03-23

    Pandas T.A: Biblioteca Pandas para análise técnica.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.


    :mag_right: :chart_with_upwards_trend: :snake: :moneybag: Backtest trading strategies in Python.

    Project mention: Any advice on where to start? | | 2022-03-04

    Hey, love the learning attitude! Some things to consider include (how are you actually going to write your code). If you want to spend more time experimenting with a signal (which with your background, seems like you do), try using a framework out there like, backtrader, or blankly (the last one is my favorite because I'm able to actually deploy live in one line whereas the others don't). These frameworks have built-in backtesting, data connections, etc. that should help you speed your dev up.

  • freqtrade-strategies

    Free trading strategies for Freqtrade bot

    Project mention: If anyone is looking to get into Trading bots, I created this fairly easy to follow guide for how to set up a Freqtrade from scratch. Including all the server commands you need to get up and running. | | 2021-09-09

    This is the official word on that from the discord "REMINDER: Basic strategies to get you started with developing your own strats - these aren't for live use!"

  • vectorbt

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

    Project mention: Why Building a Trading Algorithm is More Than Just the Algorithm - 3 Things | | 2022-02-19

    It’s super easy to get up and running with code. With the rise of data science as a field, datasets are far and wide. Accessible from just about any venue. Take a look at Kaggle, QuiverQuant, Yahoo Finance, or even directly from the brokerages and exchanges. Developers can easily download data directly as a .csv or .json and quickly get up and running by utilizing frameworks like or vectorbt. “Great, it seems like I can get up and running and I’ll have an awesome money making trading algorithm in no time”.... unfortunately, wrong. Why is this wrong? Well, simulation is NOT the real world. The real world is not a CSV file—the real world is a stream of events. Cause and effect. The real world works in a fashion where new data comes in, you make a decision, and then you figure it out, not “I have all of this data, let me run this all through time and figure it out”. Indeed, the data sources that you get in real-time are almost completely different from the data sources you use in simulation. Rather than .csv you use WebSockets; rather than QuiverQuant you use APIs; rather than backtesting frameworks you use more robust, event driven packages. Without it, you’re stuck duplicating code, rewriting it into an event-based system, and ultimately using that to go into production, and who knows if your code is going to change along the way.

  • ib_insync

    Python sync/async framework for Interactive Brokers API

    Project mention: I made an outstanding personal portfolio (in my opinion) that I want to put money into. So why isn't there a Robo investor that you put money into and takes care of this for you? | | 2022-02-03

    It depends on you programming ability. Ibinsync is a good wrapper for their API though.

  • coinbasepro-python

    The unofficial Python client for the Coinbase Pro API

    Project mention: When does a limit order expire? | | 2021-11-15

    My question is, when does the order expire, if ever? The documentation is pretty sparse -- .

  • finta

    Common financial technical indicators implemented in Pandas.

    Project mention: looking for a python lib | | 2021-11-17
  • OctoBot

    Cryptocurrency trading bot for TA, arbitrage and social trading with an advanced web interface

    Project mention: OctoBot: Cryptocurrency trading bot for TA, arbitrage and social trading with an advanced web interface | | 2022-04-09
  • Binance-News-Sentiment-Bot

    This is a fully functioning Binance trading bot that takes into account the news sentiment for the top 100 crypto feeds. If you like this project consider donating though the Brave browser to allow me to continuously improve the script.

  • surpriver

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

    Project mention: surpriver: Machine learning algo to detect anomaly in equities data. Uses sklearn [IsolationForest]( model and price/volume based technical signals as features us | | 2022-04-23
  • cryptofeed

    Cryptocurrency Exchange Websocket Data Feed Handler

    Project mention: cryptofeed: NEW Data - star count:1320.0 | | 2022-05-07
  • alpaca-trade-api-python

    Python client for Alpaca's trade API

    Project mention: What broker/platform do you like to use for your trading? | | 2022-03-31

    I ended up switching to using alpaca_trade_api library and it takes all the headache of all that. Here’s the documentation:

  • 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

    Project mention: robin_stocks: NEW Derivatives and Hedging - star count:1292.0 | | 2022-05-23
  • MachineLearningStocks

    Using python and scikit-learn to make stock predictions

    Project mention: Scikit-learn Stock Prediction: using fundamental and pricing data to predict future stock returns. Sklearn's randomforest classifier is trainded and author claimed positive live trading results. Not actively mainained Other Models - star count:1144.0 | | 2022-02-05
  • Riskfolio-Lib

    Portfolio Optimization and Quantitative Strategic Asset Allocation in Python

    Project mention: Riskfolio-Lib: NEW Portfolio Selection and Optimisation - star count:1215.0 | | 2022-05-23
  • gym-anytrading

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

    Project mention: reinforcement learning in finance and trading | | 2022-05-08
  • tda-api

    A TD Ameritrade API client for Python. Includes historical data for equities and ETFs, options chains, streaming order book data, complex order construction, and more.

    Project mention: tda-api: NEW Derivatives and Hedging - star count:979.0 | | 2022-05-21
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). The latest post mention was on 2022-05-23.

Python Trading related posts


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

Project Stars
1 backtrader 8,729
2 trump2cash 6,102
3 hummingbot 4,171
4 Crypto-Signal 3,989
5 jesse 3,906
6 mlfinlab 2,949
7 pandas-ta 2,492
8 2,437
9 freqtrade-strategies 2,003
10 vectorbt 1,917
11 ib_insync 1,803
12 coinbasepro-python 1,732
13 finta 1,566
14 OctoBot 1,559
15 Binance-News-Sentiment-Bot 1,482
16 surpriver 1,450
17 cryptofeed 1,357
18 alpaca-trade-api-python 1,353
19 robin_stocks 1,290
20 MachineLearningStocks 1,194
21 Riskfolio-Lib 1,183
22 gym-anytrading 1,060
23 tda-api 985
Find remote jobs at our new job board There are 7 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives