← 返回 Skills 市场
onlyloveher

Trading Quant

作者 onlyloveher · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
150
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cn-stock-analyzer
功能描述
量化交易数据分析工具。A股/美股/港股/贵金属实时行情,多维度评分(技术面+资金面+基本面),涨跌停池,北向资金,分钟级资金流。Use when: (1) 查询任何股票实时行情和评分, (2) 分析A股涨跌停异动, (3) 查看北向资金流向, (4) 美股港股贵金属行情, (5) 全球市场概览, (6) 个股资金...
使用说明 (SKILL.md)

量化交易数据分析

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

工具列表

所有工具统一入口:

python3.12 {baseDir}/scripts/quant.py \x3Ctool> [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(\x3C20)

数据源

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

规则

  1. 必须使用工具获取数据,禁止凭记忆回答行情
  2. PE>100 或 PB\x3C0.8 时必须标注风险
  3. 涨停>30只时提示市场情绪亢奋
  4. 北向净流出>50亿时提示外资撤离
安全使用建议
This skill appears to implement a real trading-analysis tool, but review these things before installing or running it: - Watchlist / external file access: industry_classifier tries to read a file at a relative path that escapes the package (../../../../..../knowledge/watchlist.json). That will access files outside the skill bundle if present — verify what that path would resolve to in your environment and ensure it won't read sensitive data. - Model downloads and network: the sentiment module can download HuggingFace models at runtime (large files and outbound network calls). If you need to restrict network or disk usage, run the skill in a sandbox/container, or pre-populate the model cache. - Persistent files: it writes caches to /tmp, ~/.cache/huggingface, and a workspace directory (~/.openclaw/workspace-trading by default). Clean these if you uninstall or run in an ephemeral environment. - No credentials requested: the skill doesn't require API keys or secrets in its metadata. However, the code relies on public data sources (Tencent, Sina, EastMoney, akshare, yfinance). If you plan to integrate private credentials later, inspect where those would be provided. - Dependency management: requirements.txt exists but no installer is provided. Pin and review Python package versions before pip installing; consider using a virtualenv. If you are uncomfortable with the external-file reads or model downloads, run the skill only in an isolated/containerized environment, or ask the author to remove or make explicit the watchlist-prefill behavior and to document expected network and disk usage.
功能分析
Type: OpenClaw Skill Name: cn-stock-analyzer Version: 1.0.0 The bundle is a comprehensive quantitative trading and stock analysis tool for A-shares, US/HK stocks, and commodities. It implements a multi-dimensional scoring engine using technical indicators (via pandas-ta), capital flow analysis, and sentiment analysis (via FinBERT or rule-based fallbacks). The code interacts with numerous legitimate financial data providers (Tencent, Sina, EastMoney, THS, etc.) and uses local SQLite/JSON caching. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the behavior is entirely consistent with the stated purpose of financial data analysis.
能力评估
Purpose & Capability
Name/description align with the included code: multiple data-source modules (Tencent, Sina, EastMoney, yfinance, akshare), scoring, technical/capital/sentiment analysis — these are expected. One mismatch: industry_classifier attempts to prefill from a watchlist at a relative path that climbs out of the package (../../../../..../knowledge/watchlist.json), which accesses files outside the skill bundle; this is not strictly required to provide the advertised functionality and could read unrelated user/agent data.
Instruction Scope
SKILL.md instructs running local Python scripts (quant.py) — expected. However, the runtime code may read and persist local files (e.g., /tmp/quant_industry_cache.json, ~/.cache/huggingface, and the external 'knowledge/watchlist.json' path outside the skill directory). The sentiment component also downloads HuggingFace models if not cached (network activity and large model files). The instructions do not call out these external file reads or large downloads, so the runtime behavior is broader than the SKILL.md description.
Install Mechanism
No install spec (instruction-only) and a requirements.txt lists standard Python libraries. This lowers install risk, but the sentiment module can download models from HuggingFace at runtime (expected for FinBERT-like analysis) — that will write large artifacts to the cache and perform outbound network requests.
Credentials
The skill does not declare required environment variables, credentials, or secrets. It uses optional environment variables (TRADING_WORKSPACE) to choose a workspace root and relies on default cache locations (e.g., ~/.cache/huggingface). No tokens/keys are requested, so credential scope is proportionate to the stated purpose.
Persistence & Privilege
always:false and agent invocation is normal. The code writes caches to /tmp, the HuggingFace cache (~/.cache/huggingface), and may create a workspace under ~/.openclaw/workspace-trading (or TRADING_WORKSPACE if set). It also persists an industry cache file at /tmp/quant_industry_cache.json. These are expected for this class of tool but do create persistent files on the host.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cn-stock-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cn-stock-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of trading-quant: a quantitative trading data analysis tool for global markets. - Provides real-time market data and multi-dimensional scoring (technical, capital, fundamental, news, sentiment) for A-shares, US/HK stocks, and commodities. - Supports detailed stock analysis, market anomaly/scanner, capital flow tracking (including Northbound), and global market overview. - Tools are invoked via a unified CLI entry point; multiple scripts for different analytical functions. - Five-dimensional scoring system with clear signal levels and risk marking rules. - Uses data from Tencent, Sina, Eastmoney, and others, with fallback chains per market. - Market reaction and risk rules included for exceptional market events.
元数据
Slug cn-stock-analyzer
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Trading Quant 是什么?

量化交易数据分析工具。A股/美股/港股/贵金属实时行情,多维度评分(技术面+资金面+基本面),涨跌停池,北向资金,分钟级资金流。Use when: (1) 查询任何股票实时行情和评分, (2) 分析A股涨跌停异动, (3) 查看北向资金流向, (4) 美股港股贵金属行情, (5) 全球市场概览, (6) 个股资金... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 150 次。

如何安装 Trading Quant?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cn-stock-analyzer」即可一键安装,无需额外配置。

Trading Quant 是免费的吗?

是的,Trading Quant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Trading Quant 支持哪些平台?

Trading Quant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Trading Quant?

由 onlyloveher(@onlyloveher)开发并维护,当前版本 v1.0.0。

💬 留言讨论