kandi background
Explore Kits

21 best Python Trading Bot libraries in 2023

by reegs20 Updated: Jan 13, 2023

Build an end-to-end automated trading application that can visualize financial data of current and past stock holdings, and then buy/sell stocks automatically using Python trading bot libraries.

 

The key functions of a stock trading bot built using the Python algorithmic trading libraries are getting the data, training the model, entering and exiting trades, placing orders, and getting notified. Through backtesting on historical data and by minimizing human intervention, a python trading bot can increase the speed of order entry and establish discipline in the volatile stock market to help traders earn profits. Since computer systems react quickly to fluctuating markets, an automated Python-based trading system can produce bids as soon as the defined trading conditions are met.

 

Browse below to check out the latest and trending python libraries to build your own automated trading bot:


Zipline is an event-driven python library that supports backtesting and live trading. It also supports Interactive Broker and Pandas integration.

ziplineby quantopian

Python star image 15744 Version:1.4.1

License: Permissive (Apache-2.0)

Zipline, a Pythonic Algorithmic Trading Library

Support
Quality
Security
License
Reuse

ziplineby quantopian

Python star image 15744 Version:1.4.1 License: Permissive (Apache-2.0)

Zipline, a Pythonic Algorithmic Trading Library
Support
Quality
Security
License
Reuse


TA-Lib is extensively used to perform technical analysis on financial data using technical indicators.

ta-libby mrjbq7

Python star image 5392 Version:0.4.25

License: Others (Non-SPDX)

Python wrapper for TA-Lib (http://ta-lib.org/).

Support
Quality
Security
License
Reuse

ta-libby mrjbq7

Python star image 5392 Version:0.4.25 License: Others (Non-SPDX)

Python wrapper for TA-Lib (http://ta-lib.org/).
Support
Quality
Security
License
Reuse


The Pybacktest library offers a vectorized backtesting framework in Python / pandas, and is designed to make backtesting — compact, simple, and fast.

freqtradeby freqtrade

Python star image 20605 Version:2022.12

License: Strong Copyleft (GPL-3.0)

Free, open source crypto trading bot

Support
Quality
Security
License
Reuse

freqtradeby freqtrade

Python star image 20605 Version:2022.12 License: Strong Copyleft (GPL-3.0)

Free, open source crypto trading bot
Support
Quality
Security
License
Reuse

binance-trade-botby edeng23

Python star image 6974 Version:Current

License: Strong Copyleft (GPL-3.0)

Automated cryptocurrency trading bot

Support
Quality
Security
License
Reuse

binance-trade-botby edeng23

Python star image 6974 Version:Current License: Strong Copyleft (GPL-3.0)

Automated cryptocurrency trading bot
Support
Quality
Security
License
Reuse

jesseby jesse-ai

Python star image 4377 Version:0.5.0

License: Permissive (MIT)

An advanced crypto trading bot written in Python

Support
Quality
Security
License
Reuse

jesseby jesse-ai

Python star image 4377 Version:0.5.0 License: Permissive (MIT)

An advanced crypto trading bot written in Python
Support
Quality
Security
License
Reuse

Crypto-Signalby CryptoSignal

Python star image 4233 Version:Current

License: Permissive (MIT)

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

Support
Quality
Security
License
Reuse

Crypto-Signalby CryptoSignal

Python star image 4233 Version:Current License: Permissive (MIT)

Github.com/CryptoSignal - Trading & Technical Analysis Bot - 4,100+ stars, 1,100+ forks
Support
Quality
Security
License
Reuse

Binance-volatility-trading-botby CyberPunkMetalHead

Python star image 3227 Version:Current

License: Permissive (MIT)

This is a fully functioning Binance trading bot that measures the volatility of every coin on Binance and places trades with the highest gaining coins If you like this project consider donating though the Brave browser to allow me to continuously improve the script.

Support
Quality
Security
License
Reuse

Binance-volatility-trading-botby CyberPunkMetalHead

Python star image 3227 Version:Current License: Permissive (MIT)

This is a fully functioning Binance trading bot that measures the volatility of every coin on Binance and places trades with the highest gaining coins If you like this project consider donating though the Brave browser to allow me to continuously improve the script.
Support
Quality
Security
License
Reuse

binance-traderby yasinkuyu

Python star image 1916 Version:Current

License: No License (null)

💰 Cryptocurrency Trading Bot for Binance (Experimental)

Support
Quality
Security
License
Reuse

binance-traderby yasinkuyu

Python star image 1916 Version:Current License: No License

💰 Cryptocurrency Trading Bot for Binance (Experimental)
Support
Quality
Security
License
Reuse

OctoBotby Drakkar-Software

Python star image 1923 Version:0.4.33

License: Strong Copyleft (GPL-3.0)

Cryptocurrency trading bot using technical analysis based strategy with an advanced web interface

Support
Quality
Security
License
Reuse

OctoBotby Drakkar-Software

Python star image 1923 Version:0.4.33 License: Strong Copyleft (GPL-3.0)

Cryptocurrency trading bot using technical analysis based strategy with an advanced web interface
Support
Quality
Security
License
Reuse

cointrolby jakubroztocil

Python star image 1435 Version:Current

License: Permissive (MIT)

฿ Bitcoin trading bot with a real-time dashboard for Bitstamp.

Support
Quality
Security
License
Reuse

cointrolby jakubroztocil

Python star image 1435 Version:Current License: Permissive (MIT)

฿ Bitcoin trading bot with a real-time dashboard for Bitstamp.
Support
Quality
Security
License
Reuse

Cryptocurrency-Trading-Bots-Python-Beginner-Advanceby Roibal

Python star image 1012 Version:Current

License: Permissive (MIT)

Crypto Trading Bots in Python - Triangular Arbitrage, Beginner & Advanced Cryptocurrency Trading Bots Written in Python

Support
Quality
Security
License
Reuse

Cryptocurrency-Trading-Bots-Python-Beginner-Advanceby Roibal

Python star image 1012 Version:Current License: Permissive (MIT)

Crypto Trading Bots in Python - Triangular Arbitrage, Beginner & Advanced Cryptocurrency Trading Bots Written in Python
Support
Quality
Security
License
Reuse

algobotby ZENALC

Python star image 773 Version:2.1.1

License: Strong Copyleft (GPL-3.0)

Cryptocurrency trading bot with a graphical user interface with support for simulations, backtests, optimizations, and running live bots.

Support
Quality
Security
License
Reuse

algobotby ZENALC

Python star image 773 Version:2.1.1 License: Strong Copyleft (GPL-3.0)

Cryptocurrency trading bot with a graphical user interface with support for simulations, backtests, optimizations, and running live bots.
Support
Quality
Security
License
Reuse

binance-tutorialsby hackingthemarkets

Python star image 744 Version:Current

License: No License (null)

Real-Time Candlestick Charts and Crypto Trading Bot using Binance API and Websockets

Support
Quality
Security
License
Reuse

binance-tutorialsby hackingthemarkets

Python star image 744 Version:Current License: No License

Real-Time Candlestick Charts and Crypto Trading Bot using Binance API and Websockets
Support
Quality
Security
License
Reuse

pybacktestby ematvey

Python star image 590 Version:Current

License: Permissive (MIT)

Vectorized backtesting framework in Python / pandas, designed to make your backtesting easier — compact, simple and fast

Support
Quality
Security
License
Reuse

pybacktestby ematvey

Python star image 590 Version:Current License: Permissive (MIT)

Vectorized backtesting framework in Python / pandas, designed to make your backtesting easier — compact, simple and fast
Support
Quality
Security
License
Reuse

crypto-traderby pirate

Python star image 563 Version:Current

License: Permissive (MIT)

:moneybag: Cryptocurrency trading bot library with a simple example strategy (trading via Gemini).

Support
Quality
Security
License
Reuse

crypto-traderby pirate

Python star image 563 Version:Current License: Permissive (MIT)

:moneybag: Cryptocurrency trading bot library with a simple example strategy (trading via Gemini).
Support
Quality
Security
License
Reuse

stock-trading-mlby yacoubb

Python star image 506 Version:Current

License: Strong Copyleft (GPL-3.0)

A stock trading bot that uses machine learning to make price predictions.

Support
Quality
Security
License
Reuse

stock-trading-mlby yacoubb

Python star image 506 Version:Current License: Strong Copyleft (GPL-3.0)

A stock trading bot that uses machine learning to make price predictions.
Support
Quality
Security
License
Reuse

tradingview-webhooks-botby robswc

Python star image 400 Version:v0.5-beta

License: Strong Copyleft (GPL-3.0)

a framework 🏗 for trading with tradingview webhooks!

Support
Quality
Security
License
Reuse

tradingview-webhooks-botby robswc

Python star image 400 Version:v0.5-beta License: Strong Copyleft (GPL-3.0)

a framework 🏗 for trading with tradingview webhooks!
Support
Quality
Security
License
Reuse

crypto-arbitrageby kelvinau

Python star image 544 Version:Current

License: Permissive (MIT)

Automatic Cryptocurrency Trading Bot using Triangular or Exchange Arbitrages

Support
Quality
Security
License
Reuse

crypto-arbitrageby kelvinau

Python star image 544 Version:Current License: Permissive (MIT)

Automatic Cryptocurrency Trading Bot using Triangular or Exchange Arbitrages
Support
Quality
Security
License
Reuse

TensorFlow-Bitcoin-Robotby TensorFlowNews

Python star image 157 Version:Current

License: Permissive (Apache-2.0)

A Bitcoin trade robot based on Tensorflow LSTM model.Just for fun.

Support
Quality
Security
License
Reuse

TensorFlow-Bitcoin-Robotby TensorFlowNews

Python star image 157 Version:Current License: Permissive (Apache-2.0)

A Bitcoin trade robot based on Tensorflow LSTM model.Just for fun.
Support
Quality
Security
License
Reuse

pyjuqueby tudorelu

Python star image 147 Version:0.1.1.9

License: Permissive (MIT)

⚡ Open Source Algorithmic Trading Bot for Python.

Support
Quality
Security
License
Reuse

pyjuqueby tudorelu

Python star image 147 Version:0.1.1.9 License: Permissive (MIT)

⚡ Open Source Algorithmic Trading Bot for Python.
Support
Quality
Security
License
Reuse

Titanby exdx

Python star image 133 Version:Current

License: Strong Copyleft (GPL-3.0)

Cryptocurrency trading bot framework

Support
Quality
Security
License
Reuse

Titanby exdx

Python star image 133 Version:Current License: Strong Copyleft (GPL-3.0)

Cryptocurrency trading bot framework
Support
Quality
Security
License
Reuse

PyTrendFollowby chrism2671

Python star image 132 Version:Current

License: Permissive (MIT)

PyTrendFollow - systematic futures trading using trend following

Support
Quality
Security
License
Reuse

PyTrendFollowby chrism2671

Python star image 132 Version:Current License: Permissive (MIT)

PyTrendFollow - systematic futures trading using trend following
Support
Quality
Security
License
Reuse

Bitcoin-Surge-Trading-Alphaby CyberPunkMetalHead

Python star image 128 Version:Current

License: No License (null)

Crypto trading bot that detects surges in the bitcoin price and executes trades.

Support
Quality
Security
License
Reuse

Bitcoin-Surge-Trading-Alphaby CyberPunkMetalHead

Python star image 128 Version:Current License: No License

Crypto trading bot that detects surges in the bitcoin price and executes trades.
Support
Quality
Security
License
Reuse

pytraderby caktux

Python star image 131 Version:Current

License: Permissive (MIT)

PyTrader - Python-based crypto trading bot

Support
Quality
Security
License
Reuse

pytraderby caktux

Python star image 131 Version:Current License: Permissive (MIT)

PyTrader - Python-based crypto trading bot
Support
Quality
Security
License
Reuse