trading-quant について
複数のデータソースから相場情報を取得し、テクニカル、資金動向、ファンダメンタルズ、ニュース、センチメントの観点で銘柄を評価する定量取引分析スキルです。中国および世界の株式・商品市場の分析に使えます。
主な機能
- 01複数ソースからのリアルタイム相場取得
- 02A株・米国株・香港株・商品分析
- 035項目の評価とシグナル段階
- 04市場スキャン・異常検知・資金動向
- 05データ保守とシステム状態確認コマンド
活用シーン
- 01加重スコアでA株銘柄を確認
- 02世界市場の概況を比較
- 03市場の異常や資金動向を調査
- 04テクニカル指標と売買シグナルを確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ lanyasheng/ trading-quant --skill trading-quantインストール後、Claude Code で/trading-quantを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
_meta.jsonrequirements.txt.gitignorescripts/batch_fetch.shscripts/lib/analysis/__init__.pyindustry_classifier.pycapital_flow.pyscoring.pycapital_flow.py.bakcapital_flow.py.bak2sentiment.pytechnical.pyscripts/lib/config/settings.yaml__init__.pyscripts/lib/data_sources/__init__.pyeastmoney_market.pybase.pycapital_flow_manager.pyeastmoney.pyeastmoney_news.pyeastmoney_northbound.pysina_commodity.pymanager.pymulti_news.pysina_market.pytencent.pytencent_hk.pytencent_us.pysina_commodity.py.baksina.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 |
| 港股 | 腾讯 | - |
| 商品 | 新浪期货 | - |
规则
- 必须使用工具获取数据,禁止凭记忆回答行情
- PE>100 或 PB<0.8 时必须标注风险
- 涨停>30只时提示市场情绪亢奋
- 北向净流出>50亿时提示外资撤离
コメント
Markdown 対応