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.
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.
- What makes a good trading bot?
- The trading-bot landscape
- Viprasol open-source bots
- Crypto trading bots
- Stock & multi-asset trading bots
- Forex trading bots
- Options, futures & derivatives
- Prediction-market bots
- Backtesting & research frameworks
- Execution engines & order routing
- Market data & feeds
- Technical analysis & indicators
- Machine learning & alpha research
- Portfolio, risk & analytics
- Exchange & broker APIs
- By programming language
- Bot framework comparison
- Learning resources
- Related awesome lists
- Contributing
- Contact
- License
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.
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;
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.
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:
- kalshi-trading-bot — Framework for Kalshi prediction markets (RSA-PSS auth, strategy engine, backtester, risk manager).
- ai-trading-bot — Broker-agnostic AI/ML signal-ensemble trading framework.
- crypto-trading-bot — Multi-exchange crypto bot with grid & DCA strategies.
- ai-crypto-trading-bot — AI alpha engine: feature engineering, scoring, Kelly sizing.
- solana-trading-bot — Solana DEX AMM math, slippage, and cross-pool arbitrage.
- stock-trading-bot — Cross-sectional momentum ranking & portfolio rebalancing.
- forex-trading-bot — Pip/lot math, risk-based position sizing, trend strategy.
- options-trading-bot — Black-Scholes pricing, Greeks, and strategy payoffs.
- polymarket-trading-bot — Edge, YES/NO arbitrage, and Kelly sizing for binary markets.
- 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.
- 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).
- Viprasol: see
forex-trading-botabove — 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.
- Viprasol: see
options-trading-botabove — 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.
- Viprasol: see
kalshi-trading-botandpolymarket-trading-botabove. - Manifold Markets — Open-source play-money prediction-market platform with a public API.
- py-clob-client — Official Python client for the Polymarket CLOB order book.
- kalshi-starter-code-python — Official Kalshi API starter code for Python.
- 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.
- 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.
- 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).
- 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.
- 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.
- 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.
- 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.
| 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 |
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 |
- Awesome Quant — A broader curated list of quant-finance libraries and tools.
- Machine Learning for Trading (Stefan Jansen) — Companion code for the popular ML-for-trading book.
- Quantitative Economics with Python (QuantEcon) — Free lectures on economic modelling and computation.
- Algorithmic trading basics — Introductory reading on algo trading.
- Freqtrade docs — One of the best-written practical guides to running a bot end to end.
- Awesome Quant — Quant-finance libraries, data, and tooling.
- Awesome Systematic Trading — Systematic and algorithmic trading resources.
- Awesome Crypto Trading Bots — A crypto-focused companion list.
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- 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)
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.
- Website: viprasol.com
- Email: support@viprasol.com
- Telegram: t.me/viprasol_help | WhatsApp: +91 96336 52112
- GitHub: @Viprasol-Tech | LinkedIn | X @viprasol
MIT (c) 2025 Viprasol Tech Private Limited
