← 返回 Skills 市场
lanyasheng

Trading Quant

作者 _silhouette · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
585
总下载
1
收藏
8
当前安装
1
版本数
在 OpenClaw 中安装
/install trading-quant
功能描述
量化交易数据分析工具。A股/美股/港股/贵金属实时行情,多维度评分(技术面+资金面+基本面),涨跌停池,北向资金,分钟级资金流。Use when: (1) 查询任何股票实时行情和评分, (2) 分析A股涨跌停异动, (3) 查看北向资金流向, (4) 美股港股贵金属行情, (5) 全球市场概览, (6) 个股资金...
安全使用建议
This skill is plausible for market analysis, but inspect and sandbox it before trusting it with real data. Specific things to check or do before installing: - Review scripts/lib/analysis/industry_classifier.py: it attempts to read a 'knowledge/watchlist.json' via a relative path outside the skill. If you keep any sensitive data in your agent workspace or knowledge directories, this could be read. Consider removing or sandboxing that behavior. - The code will create cache files (e.g., /tmp/quant_industry_cache.json) and use your home HuggingFace cache; expect large model downloads (FinBERT) if transformers isn't already cached. - No credentials are requested, but the skill will make network requests to public market APIs (Tencent, Sina, EastMoney, yfinance, HuggingFace). If you need to limit network or data exfiltration, run it in a restricted container/environment. - Confirm Python version and dependencies (SKILL.md uses python3.12; requirements.txt lists Python 3.10+). Install dependencies in a virtualenv before running. - If you plan to use this in an automated/always-on agent, remove or control any code that reads external files (watchlist path) or write caches to sensitive locations. Ask the publisher to justify the watchlist prefill and to document network endpoints and file I/O. If you can, run the tool in an isolated environment (container/VM) first and audit network calls (e.g., with a firewall or proxy) and file reads to ensure it only accesses intended resources.
功能分析
Type: OpenClaw Skill Name: trading-quant Version: 1.0.0 The skill is classified as suspicious due to its extensive reliance on numerous third-party Python libraries (e.g., `akshare`, `yfinance`, `pytdx`, `baostock`, `transformers`) and frequent network calls to various external financial data APIs. While these actions are for the stated purpose of financial data analysis, they introduce a significant supply chain risk and a broad attack surface. Specifically, the `transformers` library downloads large ML models from HuggingFace, and `pytdx` connects to a hardcoded external IP address (`119.147.212.81:7709`). Additionally, the skill uses `/tmp` for IPC sockets and temporary caches (`/tmp/trading_quant_persistent.sock`, `/tmp/quant_industry_cache.json`), and modifies `sys.path` to load internal modules, which, while common for local service management and modularity, could present local attack vectors in a less secure environment. No explicit malicious intent (e.g., data exfiltration to unknown domains, persistence mechanisms, or prompt injection attempts) was found in the code or documentation.
能力评估
Purpose & Capability
The name/description (quant trading & market data) aligns with the included code (data source adapters, scoring, sentiment). However there are surprising accesses: the industry classifier will try to prefill from a 'knowledge/watchlist.json' via a relative path that climbs several directories (outside the skill bundle), which is not justified by the SKILL.md or declared requirements and could read user data outside the skill.
Instruction Scope
SKILL.md instructs executing scripts/quant.py (expected). The runtime code, however, reads/writes files outside the skill directory (e.g., /tmp/quant_industry_cache.json and the relative 'knowledge/watchlist.json' path) and may use the TRADING_WORKSPACE env var; these file/ENV accesses are not declared and expand the agent's read surface beyond the stated purpose. The sentiment module can download HuggingFace models at runtime (network activity not described in SKILL.md).
Install Mechanism
No formal install spec (instruction-only from platform perspective), but the bundle includes many Python modules and a requirements.txt listing heavy packages (pandas-ta, transformers implied by sentiment code). Running the skill will likely require pip installing those deps and may trigger large model downloads from HuggingFace. Lack of an install step means execution may fail or cause on-demand network fetches.
Credentials
The skill declares no required env vars, but code reads TRADING_WORKSPACE (in config.get_workspace_root) and uses a HuggingFace cache in the user's home. It also tries to open a relative 'knowledge/watchlist.json' which could expose private files. No credentials are requested, but the unannounced env/file accesses are disproportionate to the SKILL.md's declared requirements.
Persistence & Privilege
always:false and no attempt to modify other skills. The skill writes cache to /tmp and the HuggingFace cache under the user's home and can persist an industry cache file; this is normal for such tools but still writes to disk. No evidence it modifies system-wide agent config or other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install trading-quant
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /trading-quant 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
trading-quant 1.0.0 - Initial release of a quantitative trading data analysis tool. - Supports real-time quotes and multi-dimensional scoring (technical, capital, fundamental, news, sentiment) for A-shares, US stocks, HK stocks, and precious metals. - Includes tools for trading halts, northbound capital flow, minute-level capital analysis, and global market overview. - Aggregates data from Tencent/Sina/Eastmoney/THS with fallback mechanisms. - Provides a unified command-line entry for various market analysis and maintenance operations. - Implements clear signal levels based on an integrated five-factor scoring system.
元数据
Slug trading-quant
版本 1.0.0
许可证
累计安装 8
当前安装数 8
历史版本数 1
常见问题

Trading Quant 是什么?

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

如何安装 Trading Quant?

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

Trading Quant 是免费的吗?

是的,Trading Quant 完全免费(开源免费),可自由下载、安装和使用。

Trading Quant 支持哪些平台?

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

谁开发了 Trading Quant?

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

💬 留言讨论