📦microsoft / qlib
← 返回首页
Qlib is an AI-oriented Quant investment platform that aims to use AI tech to empower Quant Research, from exploring ideas to implementing productions. Qlib supports diverse ML modeling paradigms, including supervised learning, market dynamics modeling, and RL, and is now equipped with https://github.com/microsoft/RD-Agent to automate R&D process.
⚖️ MIT#quantitative-finance#machine-learning#stock-data#platform#finance🌐 qlib.readthedocs.io📅 创建于 2020-08-14🔄 更新于 2026-10-22
🔗 GitHub Python

📄 仓库 README

在 GitHub 查看 ↗
来自 GitHub 仓库自述文件 · 版权归原作者所有

Python Versions Platform PypI Versions Upload Python Package Github Actions Test Status Documentation Status License Join the chat at https://gitter.im/Microsoft/qlib

Unreleased breaking change: artifact loading

New source builds introduce a backward-incompatible safety default: recorder loads are restricted. If you reload saved models/datasets, resume online or delayed training, or use DDG-DA, verify the artifact writer and storage permissions before opting in with trusted=True (CLI: --trusted=True). Fresh in-memory training and supported data-only reads need no opt-in. HIST mappings and high-frequency cache paths also have migration requirements.

Follow the artifact loading migration guide before upgrading. Merging into main affects source installs before a new PyPI release; this change remains unreleased until the first tagged release containing it. That release's versioned upgrade notes should link to the same guide.

Upgrading configuration-driven workflows? See the configuration migration guide for the unreleased source changes: per-component trusted: true for local .py imports, restricted expressions, and explicit extension mappings. Package imports remain available. Match this guide to your checkout; PR source, main, and tagged/PyPI releases may differ.

:newspaper: What's NEW!   :sparkling_heart:

Recent released features

Introducing RD_Agent: LLM-Based Autonomous Evolving Agents for Industrial Data-Driven R&D

We are excited to announce the release of RD-Agent📢, a powerful tool that supports automated factor mining and model optimization in quant investment R&D.

RD-Agent is now available on GitHub, and we welcome your star🌟!

To learn more, please visit the RD-Agent repository. We have prepared several public demo videos for you:

Scenario Demo video (English) Demo video (中文)
Quant Factor Mining YouTube YouTube
Quant Factor Mining from reports YouTube YouTube
Quant Model Optimization YouTube YouTube
@misc{li2025rdagentquant,
    title={R\&D-Agent-Quant: A Multi-Agent Framework for Data-Centric Factors and Model Joint Optimization},
    author={Yuante Li and Xu Yang and Xiao Yang and Minrui Xu and Xisen Wang and Weiqing Liu and Jiang Bian},
    year={2025},
    eprint={2505.15155},
    archivePrefix={arXiv},
    primaryClass={cs.AI}
}

image


Feature Status
R&D-Agent-Quant Published Apply R&D-Agent to Qlib for quant trading
BPQP for End-to-end learning 📈Coming soon!(Under review)
🔥LLM-driven Auto Quant Factory🔥 🚀 Released in ♾️RD-Agent on Aug 8, 2024
KRNN and Sandwich models :chart_with_upwards_trend: Released on May 26, 2023
Release Qlib v0.9.0 :octocat: Released on Dec 9, 2022
RL Learning Framework :hammer: :chart_with_upwards_trend: Released on Nov 10, 2022. #1332, #1322, #1316,#1299,#1263, #1244, #1169, #1125, #1076
HIST and IGMTF models :chart_with_upwards_trend: Released on Apr 10, 2022
Qlib notebook tutorial 📖 Released on Apr 7, 2022
Ibovespa index data :rice: Released on Apr 6, 2022
Point-in-Time database :hammer: Released on Mar 10, 2022
Arctic Provider Backend & Orderbook data example :hammer: Released on Jan 17, 2022
Meta-Learning-based framework & DDG-DA :chart_with_upwards_trend: :hammer: Released on Jan 10, 2022
Planning-based portfolio optimization :hammer: Released on Dec 28, 2021
Release Qlib v0.8.0 :octocat: Released on Dec 8, 2021
ADD model :chart_with_upwards_trend: Released on Nov 22, 2021
ADARNN model :chart_with_upwards_trend: Released on Nov 14, 2021
TCN model :chart_with_upwards_trend: Released on Nov 4, 2021
Nested Decision Framework :hammer: Released on Oct 1, 2021. Example and Doc
Temporal Routing Adaptor (TRA) :chart_with_upwards_trend: Released on July 30, 2021
Transformer & Localformer :chart_with_upwards_trend: Released on July 22, 2021
Release Qlib v0.7.0 :octocat: Released on July 12, 2021
TCTS Model :chart_with_upwards_trend: Released on July 1, 2021
Online serving and automatic model rolling :hammer: Released on May 17, 2021
DoubleEnsemble Model :chart_with_upwards_trend: Released on Mar 2, 2021
High-frequency data processing example :hammer: Released on Feb 5, 2021
High-frequency trading example :chart_with_upwards_trend: Part of code released on Jan 28, 2021
High-frequency data(1min) :rice: Released on Jan 27, 2021
Tabnet Model :chart_with_upwards_trend: Released on Jan 22, 2021

Features released before 2021 are not listed here.

Qlib is an open-source, AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms, including supervised learning, market dynamics modeling, and reinforcement learning.

An increasing number of SOTA Quant research works/papers in diverse paradigms are being released in Qlib to collaboratively solve key challenges in quantitative investment. For example, 1) using supervised learning to mine the market's complex non-linear patterns from rich and heterogeneous financial data, 2) modeling the dynamic nature of the financial market using adaptive concept drift technology, and 3) using reinforcement learning to model continuous investment decisions and assist investors in optimizing their trading strategies.

It contains the full ML pipeline of data processing, model training, back-testing; and covers the entire chain of quantitative investment: alpha seeking, risk modeling, portfolio optimization, and order execution. For more details, please refer to our paper "Qlib: An AI-oriented Quantitative Investment Platform".

Frameworks, Tutorial, Data & DevOps Main Challenges & Solutions in Quant Research
  • Plans
  • Framework of Qlib
  • Quick Start
  • Quant Dataset Zoo
  • Learning F
  • 📈 近 7 天 Star 趋势

    每日新增 Star(柱)与累计 Star(线)· 数据来自 GitHub

    🏆 排名变化趋势

    在各榜单中的排名历史(数字越小越靠前)

    📋 历史上榜记录

    每次快照的详细数据
    日期 榜单 排名 周期新增 总 STAR