Skip to content
ResearchOpen sourceMIT

Machine Learning for Trading

Code for Stefan Jansen's book: the most complete open ML-for-trading curriculum

By Stefan Jansen

Live GitHub metrics

Live GitHub data · Oct 11, 2026
Stars
21,294
Stars · 7d
+84
Stars · 30d
+482
30d momentum
+2.3%
Forks
5,690
Open issues
1
Language
Jupyter Notebook
Last push
yesterday

Latest release v3.1.0-artifacts on Sep 20, 2026. Repository created May 9, 2018.

15.8k16.1k16.4kJun 13Oct 11
Cumulative GitHub stars, Jun 13, 2026 to Oct 11, 2026. Source: OSSInsight star history.

What it is

The repository accompanies the third edition of the book and walks from data sourcing through factor research, deep learning and backtesting with Zipline. It is the best structured reading list for anyone moving from LLM demos to real quant practice.

In the maintainers' words: “Code for Machine Learning for Trading, 3rd edition — from data sourcing to live execution.”

Tags

  • Book
  • Curriculum
  • Factor research
  • #algorithmic-trading
  • #artificial-intelligence
  • #backtesting
  • #data-science
  • #deep-learning
  • #finance
  • #investment
  • #investment-strategies