Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
lanyasheng avatar

Trading Quant

  • 748 installs
  • 9 repo stars
  • Updated March 4, 2026
  • lanyasheng/trading-quant

trading-quant is a Python CLI skill that pulls real-time A-share, US, Hong Kong, and commodity quotes with a 5-dimension scoring model and capital-flow data for quantitative trading analysis.

About

trading-quant is a Python 3.12 CLI skill that aggregates market data from Tencent, Sina, East Money, and Tonghuashun sources through a unified quant.py entry point. It delivers a 5-dimension scoring system spanning technical, capital, and fundamental factors, plus A-share limit-up pools, northbound capital flows, minute-level fund flows, and global market snapshots. Developers reach for trading-quant when agents must query live stock quotes, analyze intraday anomalies, compare US or HK symbols, or inspect commodity prices inside automated research workflows. Commands like stock_analysis, intraday_snapshot, us_stock, hk_stock, and commodity expose discrete tools from one script. The skill targets quantitative developers monitoring multi-market positions rather than discretionary chart reading alone.

  • Unified CLI entrypoint for 15+ quant commands across A-share, US, HK, and commodity markets
  • 5-dimension scoring engine combining technical, capital, and fundamental factors with explicit weights
  • Real-time intraday snapshots, northbound capital flow tracking, and top capital inflow lists
  • Multi-source data aggregation from Tencent, Sina, East Money, and Tonghuashun
  • Maintenance commands for warming kline caches and daily data persistence

Trading Quant by the numbers

  • 748 all-time installs (skills.sh)
  • +5 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #187 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/lanyasheng/trading-quant --skill trading-quant

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs748
repo stars9
Security audit2 / 3 scanners passed
Last updatedMarch 4, 2026
Repositorylanyasheng/trading-quant

How do you pull multi-market stock quotes in Python?

Pull real-time stock quotes, multi-factor scores, capital flows, and market anomaly data for quantitative trading strategies.

Who is it for?

Quantitative developers and data engineers needing multi-source A-share, US, HK, and commodity market data with scoring inside agent or CLI workflows.

Skip if: Developers seeking trade execution, brokerage integration, or regulated investment advice rather than programmatic market data retrieval.

When should I use this skill?

A developer asks for real-time stock quotes, A-share anomaly screens, northbound capital flows, or multi-factor quant scores across CN, US, or HK markets.

What you get

Real-time quote tables, 5-dimension factor scores, capital-flow snapshots, limit-up pools, and intraday market anomaly summaries.

  • quote tables
  • factor scores
  • capital-flow reports

By the numbers

  • Uses a 5-dimension scoring system for stock analysis
  • Aggregates data from 4 providers: Tencent, Sina, East Money, and Tonghuashun

Files

SKILL.mdMarkdownGitHub ↗

量化交易数据分析

通过腾讯/新浪/东财/同花顺多数据源获取实时行情,提供5维评分体系。

工具列表

所有工具统一入口:

python3.12 {baseDir}/scripts/quant.py <tool> [args...]

A股分析

python3.12 {baseDir}/scripts/quant.py stock_analysis [codes]
python3.12 {baseDir}/scripts/quant.py intraday_snapshot

全球市场

python3.12 {baseDir}/scripts/quant.py us_stock [symbols]
python3.12 {baseDir}/scripts/quant.py hk_stock [codes]
python3.12 {baseDir}/scripts/quant.py commodity [codes]
python3.12 {baseDir}/scripts/quant.py global_overview

市场数据

python3.12 {baseDir}/scripts/quant.py market_anomaly
python3.12 {baseDir}/scripts/quant.py market_scan
python3.12 {baseDir}/scripts/quant.py top_amount [N]
python3.12 {baseDir}/scripts/quant.py capital_flow [codes]
python3.12 {baseDir}/scripts/quant.py northbound_flow
python3.12 {baseDir}/scripts/quant.py gold_analysis
python3.12 {baseDir}/scripts/quant.py margin_data [code]
python3.12 {baseDir}/scripts/quant.py lhb [date]
python3.12 {baseDir}/scripts/quant.py main_flow [codes]

维护

python3.12 {baseDir}/scripts/quant.py warm_klines
python3.12 {baseDir}/scripts/quant.py save_daily
python3.12 {baseDir}/scripts/quant.py system_health

评分体系

维度权重指标
技术面25%MACD/RSI/KDJ/均线/布林
资金面30%量比/换手率/量价/主力资金
基本面10%PE/PB/市值
消息面20%LLM 根据新闻原文判断
情绪面15%LLM 根据市场数据判断

信号等级

STRONG_BUY(>=80) > BUY(>=65) > WATCH(>=50) > HOLD(>=35) > SELL(>=20) > STRONG_SELL(<20)

数据源

市场主源降级链
A股腾讯新浪→东财→同花顺
美股腾讯yfinance
港股腾讯-
商品新浪期货-

规则

1. 必须使用工具获取数据,禁止凭记忆回答行情 2. PE>100 或 PB<0.8 时必须标注风险 3. 涨停>30只时提示市场情绪亢奋 4. 北向净流出>50亿时提示外资撤离

Related skills

FAQ

What markets does trading-quant support?

trading-quant supports A-shares, US stocks, Hong Kong stocks, and commodities including precious metals. It also provides global market overview and intraday snapshot commands through quant.py.

How does trading-quant score stocks?

trading-quant applies a 5-dimension scoring system combining technical, capital, and fundamental factors. Scores are fetched alongside real-time quotes from multiple Chinese financial data providers.

Is Trading Quant safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Finance & Tradingautomationresearch

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.