microsoft/qlib

AlgoScore
85
For research
★51k
Forks8k
Issues+PR524
Pushtoday
LicenseMIT

Editorial verdict For researchchecked 05.12.2026

What it is good at

The whole machine learning pipeline for quant research in one package: its own data store, an expression language for factors, ready-made feature sets Alpha158 and Alpha360, a model zoo (LightGBM, LSTM, Transformer, DoubleEnsemble and more), portfolio backtesting and result analysis. A single YAML config and the qrun command take you from dataset building to a report, which makes fair model comparisons on identical data easy. It also has a reinforcement learning framework for order execution, a point-in-time database to avoid look-ahead in fundamental data, and online serving with automatic model rolling. RD-Agent, a sister project, adds LLM-driven factor mining. Release 0.9.8 (October 2026) focused on safer artifact loading.

Weak spots

The platform is built around equities, mainly the Chinese market. The official dataset is temporarily disabled and the README points to community data instead. The crypto collector pulls daily CoinGecko data and, by its own README, supports data retrieval only, with no backtesting, because it lacks OHLC. For crypto you will be converting candles into the qlib format yourself. Setup is heavy: conda, Cython, and LightGBM wheels on Apple M1 need libomp. Since 0.9.8, loading saved models requires an explicit trusted=True and older configs need migration. The issue tracker is large, with several recent reports about model save and load.

Who it is for

Quants and data scientists building cross-sectional models over hundreds of instruments who want a reproducible ML pipeline. Overkill for a single strategy on one coin, where vectorbt or backtesting.py is simpler.

Versus alternatives

Against vectorbt and zipline-reloaded it offers what they lack: model training, feature datasets and serving in one package. It loses on simplicity and crypto readiness: vectorbt accepts any candles immediately, and zipline-reloaded is easier for classic event-driven equity backtests. RD-Agent, from the same team, automates factor discovery with LLMs on top of qlib.

  • Latest release v0.9.8 — 8 Oct 2026 (artifact loading hardening)
  • License: MIT
  • Python 3.8–3.12, PyPI package name pyqlib
  • Official dataset temporarily disabled; README links community data
  • CoinGecko crypto collector: data retrieval only, no backtest

Stars by day

Our star series started 05.12.2026: the chart appears after the second snapshot.

GitHub dataGitHub ↗

TopicAlgo trading & backtesting
LanguagePython
Created14.08.2020
Last release08.10.2026
Releases / tags24 / —
Contributors154
Commits total / 90d2.1k / 4
Watchers500

AlgoScore breakdownmethodology →

Popularity19.8/20
Freshness12.7/20
Community16.1/20
Maturity15/15
Momentum—
Usage—

Topic neighboursAlgo trading & backtesting →

#RepositoryAlgoScore★30d growthPushLabel
1 nautechsystems/nautilus_traderProduction-grade Rust-native trading engine with deterministic event-driven architecture 90 32k — today Use it
2 vnpy/vnpy基于Python的开源量化交易平台开发框架 87 47k — 24 d
3 coding-kitties/investing-algorithm-frameworkFramework for quantitative trading. Complete framework for development, backtesting, and deploying automated trading algorithms and trading bots. 87 2.3k — 1 d
4 QuantConnect/LeanLean Algorithmic Trading Engine by QuantConnect (Python, C#) 85 23k — today Use it
5 pst-group/pysystemtradeSystematic Trading in python 85 3.7k — 33 d
6 stefan-jansen/machine-learning-for-tradingCode for Machine Learning for Trading, 3rd edition — from data sourcing to live execution. 84 22k — today
7 polakowo/vectorbtThe research engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one. 84 10k — 6 d Use it
8 skfolio/skfolioPython library for portfolio optimization and risk models, built on scikit-learn 84 2.7k — 1 d