← Back to Skills Marketplace
Trading Quant
by
_silhouette
· GitHub ↗
· v1.0.0
585
Downloads
1
Stars
8
Active Installs
1
Versions
Install in OpenClaw
/install trading-quant
Description
量化交易数据分析工具。A股/美股/港股/贵金属实时行情,多维度评分(技术面+资金面+基本面),涨跌停池,北向资金,分钟级资金流。Use when: (1) 查询任何股票实时行情和评分, (2) 分析A股涨跌停异动, (3) 查看北向资金流向, (4) 美股港股贵金属行情, (5) 全球市场概览, (6) 个股资金...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install trading-quant - After installation, invoke the skill by name or use
/trading-quant - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Trading Quant?
量化交易数据分析工具。A股/美股/港股/贵金属实时行情,多维度评分(技术面+资金面+基本面),涨跌停池,北向资金,分钟级资金流。Use when: (1) 查询任何股票实时行情和评分, (2) 分析A股涨跌停异动, (3) 查看北向资金流向, (4) 美股港股贵金属行情, (5) 全球市场概览, (6) 个股资金... It is an AI Agent Skill for Claude Code / OpenClaw, with 585 downloads so far.
How do I install Trading Quant?
Run "/install trading-quant" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Trading Quant free?
Yes, Trading Quant is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Trading Quant support?
Trading Quant is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Trading Quant?
It is built and maintained by _silhouette (@lanyasheng); the current version is v1.0.0.
More Skills