Python framework for quantitative trading that covers strategy definition, vector and event-driven backtesting, result dashboards, and paper or live trading.
xingwudao/xquant-learning
Companion repo for the Chinese book 'XQuant: Everyone Can Be a Quant Trader', with Specs and Jupyter notebooks for Python quant trading and backtesting.
- Stars
- 439
- Forks
- 112
- Open issues
- 3
- Last commit
- 2 months ago
Repolode describes open-source projects and does not give investment advice. Trading and investing can lose money: assess the risk yourself and follow the laws where you live before using this project.
What is it?
XQuant Learning is the practice companion to the Chinese book 'XQuant: Everyone Can Be a Quant Trader'. It is organized by chapter, each answering a practical question about quantitative trading, from how a strategy makes money to how to tell whether it is overfitted.
Each chapter contains Specs, which are task descriptions written for an AI coding assistant, and Notebooks, runnable Jupyter reference implementations that serve as the expected output of each spec. The course is built around writing clear natural-language instructions rather than hand-coding Python.
The course progresses from a minimal strategy and universe selection through position sizing, signal generation, backtest evaluation, overfitting checks, live execution, and strategy iteration, with a final chapter on factor research. The main book is hosted in a separate repository.
Key features
- 01Chapter-by-chapter Specs that describe each task for an AI coding assistant.
- 02Runnable Jupyter Notebooks serving as reference implementations.
- 03Covers Python backtesting, benchmark comparison, moving-average timing and parameter sweeps.
- 04Includes overfitting identification and robustness checks.
- 05Language-agnostic workflow centered on describing problems in natural language.
Use cases
- Beginners who want to learn quantitative trading step by step through guided exercises.
- Developers exploring how to use AI coding tools to build a backtesting pipeline.
- Students following the XQuant book and checking their work against the reference notebooks.
Things to know
- Repository metadata lists no license, although the README states MIT, so check the LICENSE file before reuse.
- The material is written in Chinese and is tied to a specific book course.
Topics
FAQ
- What is xquant-learning?
- Companion repo for the Chinese book 'XQuant: Everyone Can Be a Quant Trader', with Specs and Jupyter notebooks for Python quant trading and backtesting. XQuant Learning is the practice companion to the Chinese book 'XQuant: Everyone Can Be a Quant Trader'. It is organized by chapter, each answering a practical question about quantitative trading, from how a strategy makes money to how to tell whether it is overfitted.
- Is xquant-learning free to use? What license does it have?
- xquant-learning has no declared license. Its code is public, but without a license you have no explicit permission to reuse it; ask the author before relying on it.
- Is xquant-learning still maintained?
- Updated within 6 months. The last commit to xquant-learning was on Sep 1, 2026.
- What can I use xquant-learning for?
- Beginners who want to learn quantitative trading step by step through guided exercises. Developers exploring how to use AI coding tools to build a backtesting pipeline. Students following the XQuant book and checking their work against the reference notebooks.
- Where can I get xquant-learning?
- The source code and installation instructions are on GitHub: https://github.com/xingwudao/xquant-learning
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Example Jupyter notebooks for backtesting and developing algorithmic trading strategies on DEX, DeFi and Binance CEX data with the Trading Strategy SDK.
A modular Python quant trading framework covering stock selection, portfolio allocation, backtesting and Alpaca broker execution with one weight-based interface.
A crypto trading bot framework in Go for building, backtesting and running trading strategies across multiple exchanges.
An open-source Python quant trading system for China A-shares covering data management, stock screening, timing, risk control and backtesting.
LLM-driven stock analysis system covering A-shares, HK, US, JP, KR and Taiwan stocks, pushing daily decision dashboards to chat apps and email.