Qlib is a Python platform for quant research from data prep through backtest. It supports supervised learning, market dynamics modeling, and reinforcement learning workflows.
Overview
Qlib is an AI-oriented quantitative investment platform aimed at research and production use with machine learning on financial data. It supports supervised learning, adaptive market modeling, and reinforcement learning for trading decisions.
The stack covers data processing, model training, backtesting, alpha research, risk modeling, portfolio optimization, and order execution. Components are loosely coupled so pieces can be used alone or as an end-to-end workflow.
A command-line runner can automate dataset builds, training, backtest, and reporting from YAML configs. Users prepare market data in Qlib format, often sourced from community Yahoo Finance collectors, with optional daily updates and health checks.
Docker images are documented for containerized runs. Offline and online serving modes exist for experiment management and rolling models. A companion RD-Agent project targets automated factor mining and model optimization.
Key features
- End-to-end quant ML pipeline
- Configurable qrun research workflows
- Portfolio backtest and strategies
- Reinforcement learning module
- Experiment recorder and online serving
- Point-in-time and high-frequency examples
- Docker image support
- Released quant model implementations
Use cases
- Backtesting ML trading signals
- Distributed quant model research
- High-frequency workflow prototypes
- Academic quant platform experiments