qlib

Microsoft Qlib - AI-oriented Quantitative Investment Platform. Use when: (1) stock/financial data analysis, (2) quantitative trading strategy development, (3) backtesting trading strategies, (4) machine learning for finance, (5) portfolio optimization, (6) risk modeling, (7) fetching stock prices, (8) factor analysis, (9) model training for financial predictions. NOT for: general web scraping, non-financial data analysis, or when Python environment is unavailable.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "qlib" with this command: npx skills add sawyerieong-cpuai/qlib-ms

Microsoft Qlib Skill

Microsoft Qlib is an AI-oriented quantitative investment platform developed by Microsoft Research.

Features

  • Data Handling: Professional financial data processing and management
  • Alpha Factors: Advanced factor mining and analysis
  • Backtesting: High-performance backtesting engine
  • Portfolio Optimization: Risk modeling and portfolio optimization
  • Machine Learning: ML models for financial predictions

When to Use

This skill is perfect for:

  1. Stock/Financial Data Analysis - Analyze historical stock data, financial indicators
  2. Quantitative Trading Strategy Development - Build and test trading algorithms
  3. Backtesting Trading Strategies - Validate strategies with historical data
  4. Machine Learning for Finance - Train ML models for price prediction
  5. Portfolio Optimization - Optimize portfolio allocation and risk management
  6. Risk Modeling - Assess and model financial risks
  7. Fetching Stock Prices - Retrieve real-time and historical stock data
  8. Factor Analysis - Alpha factor mining and research
  9. Model Training - Train predictive models for financial markets

Installation

pip install qlib

Quick Start

Initialize Qlib

import qlib
qlib.init()

Fetch Stock Data

from qlib.data import D

# Get stock features
df = D.features(
    instruments=["AAPL", "MSFT"],
    fields=["Close($close)", "Volume($volume)"],
    freq="day"
)

Build Strategy

from qlib.workflow import R
from qlib.contrib.evaluate import backtest_daily

# Create and run strategy
with R.start(experiment_name="my_strategy"):
    # Strategy implementation
    result = backtest_daily(start_time="2020-01-01", end_time="2023-12-31")

Train Model

from qlib.contrib.model.gbdt import LGBModel

# Initialize model
model = LGBModel()
model.fit(dataset_train)
pred = model.predict(dataset_test)

Requirements

  • Python 3.7+
  • pip

Resources

Notes

  • This skill requires Python environment with pip installed
  • Qlib is maintained by Microsoft Research
  • For best performance, use with sufficient memory (recommended 8GB+)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

run.dev — Local Dev Environment Manager

Local dev environment manager. Process management, automatic HTTPS domains, SSL certificates, reverse proxy, and AI crash diagnosis — single binary, zero con...

Registry SourceRecently Updated
Coding

ifly-image-understanding

iFlytek Image Understanding (图片理解) — analyze and answer questions about images using Spark Vision model. WebSocket API, pure Python stdlib, no pip dependencies.

Registry SourceRecently Updated
Coding

Civic Google

Use gog (Google CLI) without manual OAuth setup — Civic handles token management automatically

Registry SourceRecently Updated
2000Profile unavailable
Coding

Agent Browser.Skip

A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured co...

Registry SourceRecently Updated
2000Profile unavailable