Introducing : 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 our ♾️Demo page. Here, you will find demo videos in both English and Chinese to help you better understand the scenario and usage of RD-Agent.
We have prepared several demo videos for you:
| Scenario | Demo video (English) | Demo video (中文) |
| – | —— | —— |
| Quant Factor Mining | Link | Link |
| Quant Factor Mining from reports | Link | Link |
| Quant Model Optimization | Link | Link |
@misc{li2025rdagentquant,
title={RBibTeX
@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}
}
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}
}
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”.
New features under development(order by estimated release time).
Your feedbacks about the features are very important.
Framework of Qlib
The high-level framework of Qlib can be found above(users can find the detailed framework of Qlib’s design when getting into nitty gritty).
The components are designed as loose-coupled modules, and each component could be used stand-alone.
Qlib provides a strong infrastructure to support Quant research. Data is always an important part.
A strong learning framework is designed to support diverse learning paradigms (e.g. reinforcement learning, supervised learning) and patterns at different levels(e.g. market dynamic modeling).
By modeling the market, trading strategies will generate trade decisions that will be executed. Multiple trading strategies and executors in different levels or granularities can be nested to be optimized and run together.
At last, a comprehensive analysis will be provided and the model can be served online in a low cost.
Quick Start
This quick start guide tries to demonstrate
It’s very easy to build a complete Quant research workflow and try your ideas with Qlib.
Though with public data and simple models, machine learning technologies work very well in practical Quant investment.
Here is a quick demo shows how to install Qlib, and run LightGBM with qrun. But, please make sure you have already prepared the data following the instruction.
Installation
This table demonstrates the supported Python version of Qlib:
| | install with pip | install from source | plot |
| ————- |:———————:|:——————–:|:——————:|
| Python 3.8 | | | |
| Python 3.9 | | | |
| Python 3.10 | | | |
| Python 3.11 | | | |
| Python 3.12 | | | |
Note:
Conda is suggested for managing your Python environment. In some cases, using Python outside of a conda environment may result in missing header files, causing the installation failure of certain packages.
Please pay attention that installing cython in Python 3.6 will raise some error when installing Qlib from source. If users use Python 3.6 on their machines, it is recommended to upgrade Python to version 3.8 or higher, or use conda‘s Python to install Qlib from source.
Install with pip
Users can easily install Qlib by pip according to the following command.
pip install pyqlib
Note: pip will install the latest stable qlib. However, the main branch of qlib is in active development. If you want to test the latest scripts or functions in the main branch. Please install qlib with the methods below.
Install from source
Also, users can install the latest dev version Qlib by the source code according to the following steps:
Before installing Qlib from source, users need to install some dependencies:
pip install numpy
pip install --upgrade cython
Clone the repository and install Qlib as follows.
git clone https://github.com/microsoft/qlib.git && cd qlib
pip install . # `pip install -e .[dev]` is recommended for development. check details in docs/developer/code_standard_and_dev_guide.rst
Tips: If you fail to install Qlib or run the examples in your environment, comparing your steps and the CI workflow may help you find the problem.
Tips for Mac: If you are using Mac with M1, you might encounter issues in building the wheel for LightGBM, which is due to missing dependencies from OpenMP. To solve the problem, install openmp first with brew install libomp and then run pip install . to build it successfully.
Data Preparation
❗ Due to more restrict data security policy. The official dataset is disabled temporarily. You can try this data source contributed by the community.
Here is an example to download the latest data.
The official dataset below will resume in short future.
Load and prepare data by running the following code:
Get with module
# get 1d data
python -m qlib.cli.data qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn
# get 1min data
python -m qlib.cli.data qlib_data --target_dir ~/.qlib/qlib_data/cn_data_1min --region cn --interval 1min
Get from source
# get 1d data
python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn
# get 1min data
python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data_1min --region cn --interval 1min
This dataset is created by public data collected by crawler scripts, which have been released in
the same repository.
Users could create the same dataset with it. Description of dataset
Please pay ATTENTION that the data is collected from Yahoo Finance, and the data might not be perfect.
We recommend users to prepare their own data if they have a high-quality dataset. For more information, users can refer to the related document.
Automatic update of daily frequency data (from yahoo finance)
This step is Optional if users only want to try their models and strategies on history data.
It is recommended that users update the data manually once (–trading_date 2021-05-25) and then set it to update automatically.
NOTE: Users can’t incrementally update data based on the offline data provided by Qlib(some fields are removed to reduce the data size). Users should use yahoo collector to download Yahoo data from scratch and then incrementally update it.
If you want to know more information, please refer to the documentation.
Auto Quant Research Workflow
Qlib provides a tool named qrun to run the whole workflow automatically (including building dataset, training models, backtest and evaluation). You can start an auto quant research workflow and have a graphical reports analysis according to the following steps:
The result of qrun is as follows, please refer to docs for more explanations about the result.
'The following are analysis results of the excess return without cost.'
risk
mean 0.000708
std 0.005626
annualized_return 0.178316
information_ratio 1.996555
max_drawdown -0.081806
'The following are analysis results of the excess return with cost.'
risk
mean 0.000512
std 0.005626
annualized_return 0.128982
information_ratio 1.444287
max_drawdown -0.091078
Here are detailed documents for qrun and workflow.
Graphical Reports Analysis: First, run python -m pip install .[analysis] to install the required dependencies. Then run examples/workflow_by_code.ipynb with jupyter notebook to get graphical reports.
Forecasting signal (model prediction) analysis
Cumulative Return of groups
Return distribution
Information Coefficient (IC)
Auto Correlation of forecasting signal (model prediction)
Recent released features
Introducing
: 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 our ♾️Demo page. Here, you will find demo videos in both English and Chinese to help you better understand the scenario and usage of RD-Agent.
We have prepared several demo videos for you: | Scenario | Demo video (English) | Demo video (中文) | | – | —— | —— | | Quant Factor Mining | Link | Link | | Quant Factor Mining from reports | Link | Link | | Quant Model Optimization | Link | Link |
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”.
Plans
New features under development(order by estimated release time). Your feedbacks about the features are very important.
Framework of Qlib
The high-level framework of Qlib can be found above(users can find the detailed framework of Qlib’s design when getting into nitty gritty). The components are designed as loose-coupled modules, and each component could be used stand-alone.
Qlib provides a strong infrastructure to support Quant research. Data is always an important part. A strong learning framework is designed to support diverse learning paradigms (e.g. reinforcement learning, supervised learning) and patterns at different levels(e.g. market dynamic modeling). By modeling the market, trading strategies will generate trade decisions that will be executed. Multiple trading strategies and executors in different levels or granularities can be nested to be optimized and run together. At last, a comprehensive analysis will be provided and the model can be served online in a low cost.
Quick Start
This quick start guide tries to demonstrate
Here is a quick demo shows how to install
Qlib, and run LightGBM withqrun. But, please make sure you have already prepared the data following the instruction.Installation
This table demonstrates the supported Python version of
|
|
|
| Python 3.9 |
|
|
|
| Python 3.10 |
|
|
|
| Python 3.11 |
|
|
|
| Python 3.12 |
|
|
|
Qlib: | | install with pip | install from source | plot | | ————- |:———————:|:——————–:|:——————:| | Python 3.8 |Note:
condaenvironment may result in missing header files, causing the installation failure of certain packages.Qlibfrom source. If users use Python 3.6 on their machines, it is recommended to upgrade Python to version 3.8 or higher, or useconda‘s Python to installQlibfrom source.Install with pip
Users can easily install
Qlibby pip according to the following command.Note: pip will install the latest stable qlib. However, the main branch of qlib is in active development. If you want to test the latest scripts or functions in the main branch. Please install qlib with the methods below.
Install from source
Also, users can install the latest dev version
Qlibby the source code according to the following steps:Before installing
Qlibfrom source, users need to install some dependencies:Clone the repository and install
Qlibas follows.Tips: If you fail to install
Qlibor run the examples in your environment, comparing your steps and the CI workflow may help you find the problem.Tips for Mac: If you are using Mac with M1, you might encounter issues in building the wheel for LightGBM, which is due to missing dependencies from OpenMP. To solve the problem, install openmp first with
brew install libompand then runpip install .to build it successfully.Data Preparation
❗ Due to more restrict data security policy. The official dataset is disabled temporarily. You can try this data source contributed by the community. Here is an example to download the latest data.
The official dataset below will resume in short future.
Load and prepare data by running the following code:
Get with module
Get from source
This dataset is created by public data collected by crawler scripts, which have been released in the same repository. Users could create the same dataset with it. Description of dataset
Please pay ATTENTION that the data is collected from Yahoo Finance, and the data might not be perfect. We recommend users to prepare their own data if they have a high-quality dataset. For more information, users can refer to the related document.
Automatic update of daily frequency data (from yahoo finance)
Automatic update of data to the “qlib” directory each trading day(Linux)
use crontab:
crontab -eset up timed tasks:
Manual update of data
Checking the health of the data
check_data_health, please refer to the documentation.Docker images
Auto Quant Research Workflow
Qlib provides a tool named
qrunto run the whole workflow automatically (including building dataset, training models, backtest and evaluation). You can start an auto quant research workflow and have a graphical reports analysis according to the following steps:Quant Research Workflow: Run
qrunwith lightgbm workflow config (workflow_config_lightgbm_Alpha158.yaml as following.If users want to use
qrununder debug mode, please use the following command:The result of
qrunis as follows, please refer to docs for more explanations about the result.Here are detailed documents for
qrunand workflow.Graphical Reports Analysis: First, run
python -m pip install .[analysis]to install the required dependencies. Then runexamples/workflow_by_code.ipynbwithjupyter notebookto get graphical reports.Forecasting signal (model prediction) analysis
Portfolio analysis