Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Finance / Qlib — AI-Oriented Quantitative Investment Platform
⬡PipelineFinanceFree

Qlib — AI-Oriented Quantitative Investment Platform

Microsoft's open-source quant research and trading platform with ML/RL model support, factor mining, portfolio optimization, and backtesting.

@ai-supply
Installs135k
⟳ upstream v0.9.7 · updated 11mo ago
↗ Source repository
← More FinanceFinance leaderboard →How we grade security →Source ↗
! Grade B · 75/100 · ReviewSecurity assessment
✓No compromise signals25capabilities surfaced1known CVE8of 20 OWASP controls clear
External endpoints declaredExternal endpoints declaredBroad capability surfaceExternal endpoints declared
scanned 16d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

Qlib — AI-Oriented Quantitative Investment Platform

Qlib is Microsoft's end-to-end AI quant investment platform covering the full pipeline from data ingestion to live-order execution. It ships with a rich model zoo (LightGBM, LSTM, Transformer, Temporal Fusion Transformer, and more), a factor-expression engine, a backtesting framework, and portfolio optimization — all designed for reproducible research.

Key Features

  • Built-in model zoo: classical ML (LightGBM, XGBoost) + deep learning (LSTM, GRU, TCN, TFT, PatchTST) + RL trading agents
  • Hierarchical data layer with point-in-time correctness
  • Factor/alpha expression engine for feature engineering
  • Portfolio optimization: mean-variance, risk-model-based
  • Backtest engine with transaction-cost and slippage modelling
  • Integration with real brokers via custom execution backends

Quick Start

pip install pyqlib
python -m qlib.run.get_data qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn
import qlib
from qlib.constant import REG_CN
qlib.init(provider_uri="~/.qlib/qlib_data/cn_data", region=REG_CN)
from qlib.contrib.model.gbdt import LGBModel
model = LGBModel()
model.fit(dataset)
npx ai-supply add qlib-ai-quant-platform

Curated mirror of the open-source Qlib (MIT). Get it from the source.

Rating rank
#1
of 15 in Finance
Install rank
#4
of 15 in Finance
Security score
75/100 · B
review
Security rank
#8
of 15 in Finance
Installs
135k
cat avg 85k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Finance leaderboard →
! Security: Review · 7575/100 · grade Bscanned 16d ago
✓ no compromise signals26 risk-surface · 7/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → commitlint.js.org, qlib.readthedocs.io, arxiv.org, www.conventionalcommits.org, docs.python.org, docs.brew.sh, docs.brew.sh${tty_reset}, test.pypi.org +32
50 steps⚑ uses secretsactions/checkout@v4actions/setup-node@v4googleapis/release-please-action@v4actions/setup-python@v4RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_x86_64test.pypi.orggithub.blogactions/stale@v3

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chaincritical
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 8 pip requirements declared · microsoft-qlib-d5379c5/docs/requirements.txtrisk surface
•Dependency manifest — 4 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/ADARNN/requirements.txtrisk surface
•Dependency manifest — 3 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/CatBoost/requirements.txtrisk surface
•Dependency manifest — 2 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/KRNN/requirements.txtrisk surface
•Dependency manifest — 5 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/TRA/requirements.txtrisk surface
•Dependency manifest — 1 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks_dynamic/DDG-DA/requirements.txtrisk surface
•Dependency manifest — 13 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/baostock_5min/requirements.txtrisk surface
•Dependency manifest — 34 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/br_index/requirements.txtrisk surface
•Dependency manifest — 9 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/cn_index/requirements.txtrisk surface
•Dependency manifest — 10 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/pit/requirements.txtrisk surface
•Dependency manifest — 6 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/us_index/requirements.txtrisk surface
•Vulnerable dependencies — 165 known vulnerabilities in: requests@2.9.2, certifi@2022.12.7, cryptography@36.0.1, h11@0.13.0, idna@3.3.0, lxml@4.9.1, pyopenssl@22.0.0, requests@2.27.1 (CWE-1395)known CVE · -25 pts
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — scheduled-task persistence · microsoft-qlib-d5379c5/README.mdrisk surface
•Suspicious code patterns — pickle deserialization · microsoft-qlib-d5379c5/docs/advanced/serial.rst (CWE-502)risk surface
•Suspicious code patterns — unsafe yaml.load · microsoft-qlib-d5379c5/examples/benchmarks/TRA/example.py (CWE-502)risk surface
•Suspicious code patterns — dynamic code execution · microsoft-qlib-d5379c5/examples/benchmarks/TRA/src/dataset.py (CWE-95)risk surface
•Suspicious code patterns — OS command execution; unsafe yaml.load · microsoft-qlib-d5379c5/examples/data_demo/data_cache_demo.py (CWE-78)risk surface
•Suspicious code patterns — OS command execution; world-writable chmod 777 · microsoft-qlib-d5379c5/examples/orderbook_data/create_dataset.py (CWE-78)risk surface
•Suspicious code patterns — OS command execution · microsoft-qlib-d5379c5/qlib/contrib/tuner/tuner.py (CWE-78)risk surface
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · microsoft-qlib-d5379c5/.commitlintrc.jsrisk surface
•External endpoints declared — 2 distinct host(s) · microsoft-qlib-d5379c5/.github/ISSUE_TEMPLATE/question.mdrisk surface
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · microsoft-qlib-d5379c5/.github/brew_install.sh (CWE-272)risk surface
•External endpoints declared — 3 distinct host(s) · microsoft-qlib-d5379c5/.github/brew_install.shrisk surface
•External endpoints declared — 17 distinct host(s) · microsoft-qlib-d5379c5/README.mdrisk surface
•External endpoints declared — 6 distinct host(s) · microsoft-qlib-d5379c5/SECURITY.mdrisk surface
•External endpoints declared — 4 distinct host(s) · microsoft-qlib-d5379c5/docs/component/data.rstrisk surface
•Broad capability surface — 4 high-impact capability categories referenced — verify least-privilege · microsoft-qlib-d5379c5/qlib/utils/__init__.py (CWE-272)risk surface
•External endpoints declared — 8 distinct host(s) · microsoft-qlib-d5379c5/scripts/data_collector/utils.pyrisk surface
⚠LLM07System Prompt Leakagemedium
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Internal host / private infrastructure reference — shipped content references a private IP range or internal-only host · microsoft-qlib-d5379c5/docs/hidden/client.rst (CWE-200)risk surface
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · microsoft-qlib-d5379c5/qlib/__init__.py (CWE-835)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM01Prompt InjectionPassed
✓LLM02Sensitive Information DisclosurePassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chaincritical
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 8 pip requirements declared · microsoft-qlib-d5379c5/docs/requirements.txtrisk surface
•Dependency manifest — 4 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/ADARNN/requirements.txtrisk surface
•Dependency manifest — 3 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/CatBoost/requirements.txtrisk surface
•Dependency manifest — 2 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/KRNN/requirements.txtrisk surface
•Dependency manifest — 5 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks/TRA/requirements.txtrisk surface
•Dependency manifest — 1 pip requirements declared · microsoft-qlib-d5379c5/examples/benchmarks_dynamic/DDG-DA/requirements.txtrisk surface
•Dependency manifest — 13 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/baostock_5min/requirements.txtrisk surface
•Dependency manifest — 34 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/br_index/requirements.txtrisk surface
•Dependency manifest — 9 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/cn_index/requirements.txtrisk surface
•Dependency manifest — 10 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/pit/requirements.txtrisk surface
•Dependency manifest — 6 pip requirements declared · microsoft-qlib-d5379c5/scripts/data_collector/us_index/requirements.txtrisk surface
•Vulnerable dependencies — 165 known vulnerabilities in: requests@2.9.2, certifi@2022.12.7, cryptography@36.0.1, h11@0.13.0, idna@3.3.0, lxml@4.9.1, pyopenssl@22.0.0, requests@2.27.1 (CWE-1395)known CVE · -25 pts
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — scheduled-task persistence · microsoft-qlib-d5379c5/README.mdrisk surface
•Suspicious code patterns — pickle deserialization · microsoft-qlib-d5379c5/docs/advanced/serial.rst (CWE-502)risk surface
•Suspicious code patterns — unsafe yaml.load · microsoft-qlib-d5379c5/examples/benchmarks/TRA/example.py (CWE-502)risk surface
•Suspicious code patterns — dynamic code execution · microsoft-qlib-d5379c5/examples/benchmarks/TRA/src/dataset.py (CWE-95)risk surface
•Suspicious code patterns — OS command execution; unsafe yaml.load · microsoft-qlib-d5379c5/examples/data_demo/data_cache_demo.py (CWE-78)risk surface
•Suspicious code patterns — OS command execution; world-writable chmod 777 · microsoft-qlib-d5379c5/examples/orderbook_data/create_dataset.py (CWE-78)risk surface
•Suspicious code patterns — OS command execution · microsoft-qlib-d5379c5/qlib/contrib/tuner/tuner.py (CWE-78)risk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (17) · hygiene / uncategorized
•Unrecognized file type — '.dockerignore' is not on the allowlist · microsoft-qlib-d5379c5/.dockerignorerisk surface
•Unrecognized file type — '.gitignore' is not on the allowlist · microsoft-qlib-d5379c5/.gitignorerisk surface
•Unrecognized file type — '.ini' is not on the allowlist · microsoft-qlib-d5379c5/.mypy.inirisk surface
•Unrecognized file type — '.pylintrc' is not on the allowlist · microsoft-qlib-d5379c5/.pylintrcrisk surface
•Unrecognized file type — '.?' is not on the allowlist · microsoft-qlib-d5379c5/Dockerfilerisk surface
•Unrecognized file type — '.in' is not on the allowlist · microsoft-qlib-d5379c5/MANIFEST.inrisk surface
•Disallowed file type — '.bat' executables are not permitted · microsoft-qlib-d5379c5/docs/make.bat (CWE-434)risk surface
•Unrecognized file type — '.pkl' is not on the allowlist · microsoft-qlib-d5379c5/examples/benchmarks/GRU/csi300_gru_ts.pklrisk surface
•Archive disguised as another type — content is a zip but extension is .pkl · microsoft-qlib-d5379c5/examples/benchmarks/GRU/csi300_gru_ts.pklrisk surface
•Suspicious network references — suspicious TLD (29 URLs) · microsoft-qlib-d5379c5/examples/benchmarks/TCTS/README.mdrisk surface
•Suspicious network references — suspicious TLD (2 URLs) · microsoft-qlib-d5379c5/examples/portfolio/README.mdrisk surface
•Suspicious network references — suspicious TLD (9 URLs) · microsoft-qlib-d5379c5/examples/tutorial/detailed_workflow.ipynbrisk surface
•Unrecognized file type — '.pyx' is not on the allowlist · microsoft-qlib-d5379c5/qlib/data/_libs/expanding.pyxrisk surface
•Suspicious network references — suspicious TLD (7 URLs) · microsoft-qlib-d5379c5/qlib/model/riskmodel/shrink.pyrisk surface
•Suspicious network references — suspicious TLD (6 URLs) · microsoft-qlib-d5379c5/qlib/tests/data.pyrisk surface
•Suspicious network references — suspicious TLD (8 URLs) · microsoft-qlib-d5379c5/scripts/data_collector/cn_index/collector.pyrisk surface
•Suspicious network references — suspicious TLD (1 URLs) · microsoft-qlib-d5379c5/tests/test_pit.pyrisk surface
✔ verified source · pinned microsoft-qlib-d5379c5
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/qlib-ai-quant-platform/check). Click a policy:

Consume Qlib — AI-Oriented Quantitative Investment Platform programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/qlib-ai-quant-platform

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/qlib-ai-quant-platform/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add qlib-ai-quant-platform

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/qlib-ai-quant-platform/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "qlib-ai-quant-platform" })
OpenAPI spec →
vlatest
! Security: Review · 751mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy