Home / Backtesting & trading frameworks
machine-learning-for-trading
Jupyter notebooks companion to Machine Learning for Trading
What it is
A collection of Jupyter notebooks accompanying Stefan Jansen's Machine Learning for Trading book, covering the full path from data sourcing to live strategy execution. The code spans 27 chapters and nine case studies, including gradient boosting, deep time-series models, causal machine learning, reinforcement learning, and live trading via Interactive Brokers, Alpaca, and QuantConnect. Quant traders and developers who want to learn ML-driven strategy research and deployment end to end will find it most useful. As book companion material, the notebooks are research code for study rather than a production-ready trading product.
At a glance
RecommendedOur rating, based on popularity, maintenance and how ready it is for real use.
| Best for | Professional quants |
|---|---|
| Used for | Strategy research, Data analysis |
| Markets | Multi-market |
| Stack | Python |
| Learning curve | Moderate learning curve |
| Practical value | High practical value |
| Cost | Free and open source |
| Hardware | GPU optional |
| Maintenance | Commits today |
GitHub stars, last 30 days
Daily snapshots since 2026-09-12 (up to 30 days): +425 over the period, now 21,292. Gaps mean no snapshot was taken that day.
Code and resources for Machine Learning for Algorithmic Trading.
Similar tools
Goldman Sachs Python toolkit for derivatives and risk
scikit-learn compatible Python library for portfolio optimization
CVXPY-based portfolio optimization and strategic asset allocation
Python financial econometrics with ARCH, GARCH and volatility models
C++ financial research terminal with embedded Python analytics
Python library for pricing and risk-managing financial derivatives