Home / Backtesting & trading frameworks

Qlib

Backtesting & trading frameworks50,739 GitHub starsPython⏱ Last commit 27 days ago
Plain-language introduction · Qlib

Research machine-learning models with historical data and backtests.

Qlib is Microsoft’s open-source Python research framework for preparing data, training models and backtesting strategies. It requires setup and data preparation; it does not make investment decisions for you or guarantee returns.

Good fit: researchers familiar with Python and machine learning who can evaluate environments, data quality and backtest risk. Not a fit: someone seeking a no-code product, automatic profits or ready-made trading signals.

Cost: the project code uses the MIT license. Data, hosting, computing and other services may cost money, and data rights depend on the provider; free code does not make the entire workflow free.

First step (about 3 minutes): open the official quickstart and read Data Preparation. Identify the current dataset limitation and what you would need before running an example. This is a reading step only: no installation, data download, account or trade. Setup and research take longer.

As of 2026-11-05, the official README says its example dataset is temporarily disabled and points to a community source. Independently check data rights, coverage and quality rather than assuming older download instructions work. On that date the latest GitHub source release is v0.9.8 while the PyPI pyqlib package is 0.9.7; they may differ. The README and older documentation also differ on Python versions, so check the version you choose before installation. Backtests do not predict returns and can be affected by data bias, overfitting and costs. We did not install or run the project.

Official quickstart ↗ · Official data preparation ↗ · README-linked terminal demo ↗ · PyPI package version ↗ · GitHub source release ↗

The project links to the terminal demo; embedded playback has not been verified. The written guidance above works without it.

AI-oriented quantitative investment platform with full ML pipeline

What it is

An open-source, AI-oriented quantitative investment platform from Microsoft, written in Python. It provides a complete machine learning pipeline covering data processing, model training, and back-testing, and addresses the full chain of quantitative investment, including alpha research. Researchers and practitioners building ML-driven trading strategies will find it useful, and it pairs with the related RD-Agent project for automated factor mining and model optimization. It is a research-oriented framework rather than an out-of-the-box trading product, so users should expect to write code and configure data pipelines themselves.

At a glance

RecommendedOur rating, based on popularity, maintenance and how ready it is for real use.

Best forProfessional quants
Used forBacktesting, Strategy research
MarketsChina A-shares, Multi-market
StackPython
Learning curveSteep learning curve
Practical valueHigh practical value
CostFree and open source
HardwareGPU optional
MaintenanceLast commit 27 days ago

Popularity snapshots

Daily snapshots of GitHub stars. Star changes are not a count of users or usage. Snapshots since 2026-11-02 (up to 30 days): first-to-last change +823 , latest 50,739. Gaps mean no snapshot was taken that day.

In the author's words

An AI-oriented Quantitative Investment Platform by Microsoft. Full ML pipeline of data processing, model training, back-testing; and covers the entire chain of quantitative investment: alph

Open on GitHub ↗This week's trending toolsChinese page

Similar tools