Open source repo
machine-learning-for-trading
Code for Machine Learning for Trading, 3rd edition, from data sourcing to live execution.
View on GitHubProject siteMore repos in the app
What it is
machine-learning-for-trading is an open source automation tool with AI, published on GitHub by stefan‑jansen and written mainly in Jupyter Notebook. Its maintainers file it under algorithmic‑trading, artificial‑intelligence, backtesting, data‑science.
In its own words on GitHub: “Code for Machine Learning for Trading, 3rd edition, from data sourcing to live execution.”
Who it is for
Operators and small teams who want repeat work to run by itself, such as moving data between apps, sorting email or making reports, with AI steps in the middle.
How to start
- Open the repo and read the README from the top, then the license file.
- It is mostly notebooks, so you can open them in Jupyter or Google Colab and run them cell by cell.
- Its project site, ml4trading.io, has documentation and sometimes a hosted version you can try before you install anything.
- Try it first in a test project or a sandbox, and give it only the keys and folders it needs.
- Pin a release or a commit, so an update does not change how it behaves without you noticing.
Why it is on our list
- It has a permissive MIT license, so you can use it at work.
- It is actively maintained: the last change was today, as of December 2, 2026.
- It has its own site with documentation.
- It is widely used, with 22,188 stars on GitHub.
The facts
| License | MIT |
| What the license allows | You can use, change and ship it, including in paid products. Keep the copyright notice. |
| Main language | Jupyter Notebook |
| Stars | 22,188 |
| Topics | algorithmic‑trading, artificial‑intelligence, backtesting, data‑science, deep‑learning |
| Created | May 9, 2018 |
| Last checked | December 2, 2026 |
Before you use it
- Read the README and the license file in the repo.
- Look at recent issues to see how fast problems get fixed.
- Pin a version instead of always pulling the latest.
- Never paste API keys or customer data into a tool you have not checked.
- Run AI agents in a sandbox or a test project first.
Related repos
transformers
Transformers: the model‑definition framework for state‑of‑the‑art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
DeepSpeed
DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.
repomix
Repomix is a powerful tool that packs your entire repository into a single, AI‑friendly file.
Try it in your browser
Today's AI news, one card per swipe.
Free to start.