mcpField
T
trading-quant

trading-quant

github.com/lanyasheng数据与数据库10795 次安装34 周前更新
代码仓库

关于 trading-quant

这是一项量化交易分析技能,从多个数据源获取行情,并从技术、资金、基本面、消息和情绪维度为证券评分。适用于分析中国及全球股票和商品市场。

主要功能

  1. 01多数据源实时行情
  2. 02A 股、美股、港股及商品分析
  3. 03五维评分与信号等级
  4. 04市场扫描、异动和资金流数据
  5. 05数据维护与系统健康命令

适用场景

  1. 01按加权评分分析 A 股个股
  2. 02查看全球市场概况
  3. 03扫描市场异动和资金流向
  4. 04检查技术指标与交易信号

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/lanyasheng/trading-quant --skill trading-quant

安装后在 Claude Code 中输入/trading-quant确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

_meta.json
requirements.txt
.gitignore
scripts/
batch_fetch.sh
scripts/lib/analysis/
__init__.py
industry_classifier.py
capital_flow.py
scoring.py
capital_flow.py.bak
capital_flow.py.bak2
sentiment.py
technical.py
scripts/lib/config/
settings.yaml
__init__.py
scripts/lib/data_sources/
__init__.py
eastmoney_market.py
base.py
capital_flow_manager.py
eastmoney.py
eastmoney_news.py
eastmoney_northbound.py
sina_commodity.py
manager.py
multi_news.py
sina_market.py
tencent.py
tencent_hk.py
tencent_us.py
sina_commodity.py.bak
sina.py

详细介绍

来自项目 README

量化交易数据分析

通过腾讯/新浪/东财/同花顺多数据源获取实时行情,提供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亿时提示外资撤离

评论

支持 Markdown