qlib  by microsoft

AI platform for quantitative investment research and production

created 5 years ago
27,658 stars

Top 1.4% on sourcepulse

GitHubView on GitHub
Project Summary

Qlib is an AI-oriented quantitative investment platform designed for researchers and practitioners to explore, develop, and deploy quantitative investment strategies. It provides a comprehensive machine learning pipeline, from data processing and model training to backtesting and online serving, aiming to leverage AI for enhanced investment decision-making.

How It Works

Qlib employs a modular, loosely-coupled architecture, enabling individual components to be used independently. It features a robust learning framework supporting diverse paradigms like supervised learning and reinforcement learning, with specific models for market dynamics and continuous investment decisions. The platform integrates data processing, model training, backtesting, and online serving, facilitating end-to-end quantitative investment workflows.

Quick Start & Requirements

  • Install: pip install pyqlib (for stable release) or install from source for the latest development version.
  • Prerequisites: Python 3.8-3.12. Conda is recommended for environment management. Mac M1 users may need brew install libomp for LightGBM.
  • Data: Official datasets are temporarily disabled; community-contributed data is available via wget or can be prepared using provided scripts.
  • Docs: Qlib Documentation

Highlighted Details

  • Supports a wide range of SOTA Quant research models, including GBDT, LSTM, Transformer, and RL-based approaches.
  • Features an "Auto Quant Research Workflow" (qrun) for automated pipeline execution and graphical report analysis.
  • Offers a modular interface for building customized research workflows by code.
  • Includes solutions for adapting models to market dynamics (e.g., Rolling Retraining, DDG-DA) and RL for order execution.

Maintenance & Community

Qlib is actively developed by Microsoft. Contributions are welcomed, with guidance provided for new models, datasets, and documentation. Community interaction is encouraged via GitHub Issues and Gitter.

Licensing & Compatibility

The project is licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The official dataset is temporarily unavailable. Some older models (e.g., TFT) have specific Python version dependencies (3.6-3.7) due to TensorFlow limitations. The run_all_model.py script currently only supports Linux and does not support parallel execution of the same model.

Health Check
Last commit

4 days ago

Responsiveness

1 week

Pull Requests (30d)
6
Issues (30d)
6
Star History
8,954 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), and
2 more.

maestro by roboflow

0.1%
3k
CLI/SDK for fine-tuning multimodal models
created 1 year ago
updated 5 days ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Nathan Lambert Nathan Lambert(AI Researcher at AI2), and
1 more.

tianshou by thu-ml

0.1%
9k
PyTorch RL library for algorithm development and application
created 7 years ago
updated 1 day ago
Feedback? Help us improve.