The ultimate curated resource list for Python-based algorithmic trading — built and maintained by Python for Traders.
We only include tools, libraries, and projects worth your time. No bloated lists. No dead links. If it's here, it's useful.
⭐ = Highly recommended based on community feedback and active development
- 🔧 Setup & Environment
- 📊 Data Sources
- 📈 Backtesting Engines
- ⚙️ Execution & Brokers
- 📦 Strategy Codebases
- 🧠 ML & Quant Research
- 📚 Courses & Books
- 🧰 Libraries & Tools
- 💬 Communities & Blogs
- 🔥 Starter Projects
- 🎓 Master the Stack
Tools and templates to get your Python quant stack running fast.
- ⭐ uv - Modern Python package installer and resolver
- ⭐ ruff - Fast Python linter and code formatter
- ⭐ cursor - AI-powered code editor
- poetry - Python dependency management and packaging
- jupyterlab - Web-based interactive development environment
- VSCode - Popular code editor with great Python support
- mplfinance - matplotlib utilities for financial charts
- finplot - Fast & clean financial plotting
Free and paid APIs for historical and live market data.
- ⭐ yfinance - Free Yahoo Finance data
- ⭐ Alpaca Market Data - Real-time and historical US stocks/crypto
- ⭐ Crypto: CCXT - Unified crypto exchange API
- Polygon.io - Comprehensive market data API
- Tiingo - Financial data platform with free tier
- Quandl - Financial, economic and alternative data
- IBKR TWS API - Interactive Brokers market data
- Alpha Vantage - Free stock, forex and crypto data
- Finnhub - Real-time RESTful APIs
- IEX Cloud - Financial data infrastructure
- Binance API - Crypto exchange data
- CoinGecko - Comprehensive crypto data
- EOD Historical Data - Global financial data
- Financial Modeling Prep - Financial statements API
- Marketstack - Real-time and historical market data
Simulate, validate, and iterate on trading strategies.
- bt - Flexible backtesting for Python
- vectorbt - Fast vectorized backtesting
- Backtrader - Popular event-driven framework
- QuantConnect Lean - Production-grade engine
- fastquant - Backtest strategies in one line
- PyAlgoTrade - Event-driven algorithmic trading
- Zipline - Quantopian's backtesting engine
- finmarketpy - Backtesting with market analysis
- QTPyLib - Algo trading framework for stocks & futures
- TradingView - Cloud-based backtesting platform
Trade automation libraries and broker APIs.
- ⭐ IB-insync - Interactive Brokers Python API
- ⭐ Alpaca-Py - Commission-free stock trading
- ⭐ ccxt - Crypto trading across 100+ exchanges
- Binance API Python - Binance exchange API
- IBKR Native API - Official IB API
- Coinbase Pro - Coinbase exchange API
- Kraken API - Kraken exchange API
- Oanda API - Forex and CFD trading
Real strategy examples to learn from or fork.
- QuantConnect/Lean
- bt examples
- Alphalens – factor analysis
- zipline – legacy Quantopian engine
- finmarketpy
ML and stats tools for modeling and signal generation.
- ⭐ scikit-learn
- ⭐ statsmodels
- ⭐ quantstats
- pmdarima
- arch – volatility models
- TA-Lib
- mlfinlab
The best content to deepen your understanding.
- ⭐ Python for Traders Masterclass – Build real bots in 30 days.
- Algorithmic Trading: Winning Strategies and Their Rationale – E. Chan
- Quantitative Trading: How to Build Your Own Algorithmic Trading Business – E. Chan
- Machine Learning for Asset Managers – M. Lopez de Prado
- Python for Finance: Mastering Data-Driven Finance – Y. Hilpisch
- QuantInsti - Professional algo trading certification
- Udacity Artificial Intelligence for Trading - AI/ML focused trading course
- Hudson & Thames - High-quality quantitative research and courses
High-impact libraries every Python quant should know.
- ⭐ Pandas - Fast and flexible data analysis
- ⭐ NumPy - Scientific computing foundation
- ⭐ Polars - Lightning-fast DataFrame library
- Vaex - Out-of-memory DataFrames
- TA-Lib - Technical analysis
- Quantlib - Quantitative finance
- plotly - Interactive visualization
- mplfinance - Financial charting
Where the smart traders hang out.
- ⭐ Python for Traders Community
- Quantocracy
- r/algotrading
- EliteTrader Forums
- Ernie Chan Blog
- QuantStart
- QuantInsti Blog
- Substack: Alpha Architect
Use these as boilerplates or learning exercises.
Want to go deeper and actually build bots that trade?
Join our free Python for Traders community and get:
- ✅ Step-by-step strategy building from idea to execution
- ✅ Live broker integration
- ✅ Downloadable templates and backtest code
- ✅ A private community of serious builders
No fluff, no theory - just practical code and strategies you can use today. Our community has helped hundreds of traders go from zero to live trading.