Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viprasol Tech logo

Awesome Trading Bots Awesome

The most complete, hand-curated list of open-source trading bots, frameworks, libraries, and learning resources — across crypto, stocks, forex, options, futures, and prediction markets.

Built and maintained by Viprasol Tech — Fintech Experts. Full-Stack Builders.

Validate License: MIT Awesome list PRs welcome Code of Conduct Telegram Stars


Disclaimer

Trading bots can lose money. Everything here is for educational purposes only and is not financial advice. Automated trading involves substantial risk, including the total and rapid loss of capital; leveraged and derivatives products can lose more than your deposit. Backtested or past performance does not predict future results, and live results routinely differ from simulations because of slippage, fees, latency, and market regime shifts. Always paper-trade first, start with capital you can afford to lose, read each project's own disclaimer and license, and comply with the laws, tax rules, and platform terms in your jurisdiction. Nothing here is an endorsement of any project, exchange, or strategy.


Contents

What makes a good trading bot?

Before you pick a framework, know what separates a toy from a production system. Use this as a checklist when evaluating any project on this list:

  • Backtesting that matches live — same code path for simulation and live, realistic fills, fees, and slippage. Beware look-ahead bias and survivorship bias.
  • Risk management first — position sizing, max drawdown limits, per-trade and per-day loss caps, and a working kill switch.
  • Reliable execution — idempotent orders, reconnection logic, rate-limit handling, and reconciliation between bot state and exchange state.
  • Observability — structured logs, metrics, and alerts (Telegram/Discord/email) so you know when something breaks at 3 a.m.
  • Secrets hygiene — API keys with the minimum permissions (never enable withdrawals), IP allow-lists, and no keys in source control.
  • Active maintenance — recent commits, responsive issues, and a real community. A stale bot against a live market is a liability.

The trading-bot landscape

flowchart TD
    A[Awesome Trading Bots] --> B[Bots & Frameworks]
    A --> C[Infrastructure]
    A --> D[Research & Learning]

    B --> B1[Crypto]
    B --> B2[Stocks / Multi-asset]
    B --> B3[Forex]
    B --> B4[Options / Futures / Derivatives]
    B --> B5[Prediction markets]

    C --> C1[Execution engines & order routing]
    C --> C2[Market data & feeds]
    C --> C3[Exchange & broker APIs]
    C --> C4[Technical analysis & indicators]

    D --> D1[Backtesting & research]
    D --> D2[Machine learning & alpha]
    D --> D3[Portfolio, risk & analytics]
    D --> D4[Courses, books & blogs]

    classDef root fill:#7c3aed,stroke:#4c1d95,color:#fff;
    class A root;
Loading

A typical bot wires these layers together: data feed -> signal/strategy -> risk & sizing -> execution/router -> exchange/broker, with backtesting running the exact same strategy code against historical data and analytics measuring the results.

Viprasol open-source bots

Free, MIT-licensed, working bots built and maintained by Viprasol Tech. Each is a small, readable, fully-tested Python package — great for learning the mechanics of a domain:

Crypto trading bots

  • Freqtrade — Popular free crypto trading bot in Python with backtesting, hyperopt, ML, and Telegram control.
  • Hummingbot — Open-source market-making and arbitrage bot for CEX and DEX venues.
  • Jesse — Advanced crypto trading framework focused on simplicity and accurate backtesting.
  • OctoBot — Modular crypto trading bot with a web UI and strategy marketplace.
  • Kelp — Open-source trading and market-making bot (Stellar and others).
  • Gekko — Beginner-friendly Bitcoin trading bot and backtester (archived, still instructive).
  • Zenbot — Command-line crypto trading bot with high-frequency support and genetic backtesting.
  • Superalgos — Visual, community-driven platform for designing and running crypto strategies.
  • crypto-trading-bot (Haehnchen) — Node.js bot for Bitmex, Bitfinex, and Binance with strategy support.
  • PyTrendFollow — Systematic trend-following for crypto and futures.

Stock & multi-asset trading bots

  • QuantConnect LEAN — Open-source algorithmic trading engine for equities, futures, options, FX, and crypto.
  • Nautilus Trader — High-performance, event-driven trading platform in Python/Rust for backtest and live.
  • vn.py — Full-featured Python quant trading platform popular in Asian markets.
  • OpenBB — Open-source investment-research platform (the open alternative to a Bloomberg Terminal).
  • Lumibot — Beginner-friendly Python framework for stocks, options, and crypto with broker integrations.
  • QSTrader — Modular event-driven backtesting and live-trading library for institutional-style strategies.
  • PyAlgoTrade — Event-driven algorithmic trading library with backtesting and paper trading.
  • eiten — Statistical and algorithmic portfolio construction (eigen, minimum-variance, genetic).

Forex trading bots

  • Viprasol: see forex-trading-bot above — risk-based FX position sizing and a trend strategy.
  • MetaTrader MQL community — Large library of open Expert Advisors (MQL4/MQL5) for MT4/MT5.
  • oanda-api-v20 — Python wrapper for the OANDA v20 REST API (FX and CFDs).
  • freqtrade-strategies — Community strategy templates adaptable to FX-style mean reversion and trend.
  • tpqoa — Lightweight Python wrapper around OANDA's API for streaming and backtesting FX.

Options, futures & derivatives

  • Viprasol: see options-trading-bot above — Black-Scholes pricing, Greeks, and payoffs.
  • QuantLib — Comprehensive quantitative-finance library for derivatives pricing and risk.
  • py_vollib — Fast Black-Scholes-Merton option pricing and implied-volatility library.
  • optopsy — Backtesting library for options strategies on historical chains.
  • ib_insync — Pythonic Interactive Brokers API, widely used for options and futures automation.
  • tastytrade (Python) — Unofficial Python SDK for the tastytrade options brokerage.

Prediction-market bots

Backtesting & research frameworks

  • Backtrader — Popular, feature-rich Python backtesting framework.
  • vectorbt — Fast, vectorised backtesting and quantitative research at scale.
  • backtesting.py — Minimal, fast backtesting library with interactive plots.
  • Zipline (reloaded) — Maintained fork of the classic Pythonic algorithmic-trading library.
  • bt — Flexible backtesting for portfolio-based and allocation strategies.
  • fastquant — Backtest strategies in a few lines of code, wrapping Backtrader.

Execution engines & order routing

  • Nautilus Trader — Production-grade event-driven engine with the same code for backtest and live.
  • Hummingbot Gateway — Standardised gateway/router for DEX and protocol connectivity.
  • Roq Trading Solutions — Low-latency C++ market-connectivity and order-management API.
  • barter-rs — Rust framework for building event-driven live and backtest trading engines.

Market data & feeds

  • yfinance — Download market data from Yahoo Finance.
  • Alpha Vantage — Python wrapper for the Alpha Vantage market-data API.
  • Tardis.dev — High-resolution historical crypto market data (tick, book, trades).
  • databento (Python) — Normalised historical and live institutional market data.
  • findatapy — Unified interface to many market-data sources (Bloomberg, Quandl, ALFRED).

Technical analysis & indicators

  • pandas-ta — 130+ technical-analysis indicators for pandas DataFrames.
  • TA-Lib (Python) — Python bindings for the classic TA-Lib indicator library.
  • ta — Pure-Python technical-analysis indicators built on pandas.
  • tulipindicators — Fast C technical-analysis library with bindings.
  • finta — Common financial technical indicators implemented in pandas.

Machine learning & alpha research

  • Qlib — Microsoft's AI-oriented quant investment platform (data, models, backtest).
  • FinRL — Deep reinforcement learning framework for automated trading.
  • tensortrade — Reinforcement-learning framework for training trading agents.
  • mlfinlab — Implementations of techniques from Advances in Financial Machine Learning.
  • alphalens (reloaded) — Performance analysis of predictive (alpha) factors.

Portfolio, risk & analytics

  • QuantStats — Portfolio analytics, tear sheets, and risk metrics for quants.
  • PyPortfolioOpt — Portfolio optimisation (mean-variance, Black-Litterman, HRP).
  • Riskfolio-Lib — Portfolio optimisation and quantitative strategic asset allocation.
  • pyfolio (reloaded) — Performance and risk analysis of financial portfolios.
  • empyrical (reloaded) — Common financial risk and performance metrics.

Exchange & broker APIs

  • CCXT — Unified crypto exchange trading API for 100+ exchanges (Python/JS/PHP/C#).
  • python-binance — Popular unofficial Binance REST and WebSocket client.
  • alpaca-py — Official Python SDK for the commission-free Alpaca stock/crypto API.
  • ib_insync — Pythonic, async-friendly client for Interactive Brokers.
  • tda-api — Unofficial client for the TD Ameritrade / Schwab trading API.

By programming language

Language Notable projects
Python Freqtrade, Jesse, Backtrader, vectorbt, Nautilus Trader, Qlib, FinRL, CCXT, ib_insync
JavaScript / TypeScript Gekko, Zenbot, crypto-trading-bot (Haehnchen), CCXT, Hummingbot Gateway
C# / .NET QuantConnect LEAN, CCXT
C++ QuantLib, Roq Trading Solutions, tulipindicators
Rust barter-rs, Nautilus Trader (core), CCXT (bindings in progress)
MQL4 / MQL5 MetaTrader MQL community Expert Advisors

Bot framework comparison

A quick orientation for the most popular general frameworks. Always verify current capabilities against each project's docs.

Project Language Primary focus Backtesting Live trading UI
Freqtrade Python Crypto strategies Yes Yes Web + Telegram
Jesse Python Crypto research Yes Yes Web
Hummingbot Python Market making / arb Limited Yes CLI
Nautilus Trader Python/Rust Multi-asset, low-latency Yes Yes Code-first
QuantConnect LEAN C#/Python Multi-asset research Yes Yes Cloud + local
Backtrader Python Backtesting library Yes Partial Code-first

Learning resources

Related awesome lists

Contributing

Found a great open-source trading bot that's missing? Contributions are welcome — see CONTRIBUTING.md. Please keep entries open-source, actively maintained, accurately described in one neutral sentence, and placed in the right section. Run the validator locally first:

python tools/check_list.py

Roadmap

  • Core categories (crypto, stocks, forex, options, prediction markets)
  • Infrastructure sections (execution, data, TA, APIs)
  • Language index and framework comparison table
  • Mermaid landscape diagram and evaluation checklist
  • Per-project maintenance/health badges (last-commit, stars)
  • Automated link-rot checker in CI
  • "Good first bot" starter track for beginners
  • Translations (中文, Español)

FAQ

Is this financial advice? No. See the Disclaimer. This is an educational reference list only.

How do you decide what gets listed? Projects should be open-source, reasonably maintained, and clearly described. We favour breadth across asset classes and infrastructure over a single ecosystem.

A project here is archived or unmaintained — why list it? Some classics (e.g. Gekko) are still excellent for learning even when archived. Where relevant we note this; open a PR if something should be flagged or removed.

Can I add my own bot? Yes — open a PR or use the Add a project issue template. Self-submissions are welcome if they meet the bar.

Contact — Viprasol Tech Private Limited

License

MIT (c) 2025 Viprasol Tech Private Limited

About

A curated list of the best open-source trading bots for crypto, stocks, forex, options & prediction markets. By Viprasol Tech.

Topics

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages