← 返回 Skills 市场
481
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ths-financial-data
功能描述
该skill用于获取股票市场数据,包括实时行情、中文名称查询、键盘缩写转换、资金流向和日K线数据。使用thsdk库提供同花顺数据接口支持。支持自动将中文、缩写、短代码转换为thsdk所需的完整ths_code格式。当匹配到多只股票时,会返回候选列表供用户选择。如未安装thsdk,会自动安装。
安全使用建议
This skill appears to do what it says: query stock data via the thsdk library. Before installing, be aware it will attempt to pip install/upgrade the thsdk package at runtime (network download and code execution). Verify that you trust the thsdk package source and that installing packages at runtime is acceptable for your environment. If you plan to access account-restricted data, you may need to provide THS credentials (the skill does not declare required env vars but thsdk supports username/password or env-based config). Consider running the skill in an isolated environment (virtualenv or container) and review the thsdk project and its version (>=1.7.14 recommended) before use.
功能分析
Type: OpenClaw Skill
Name: ths-financial-data
Version: 1.0.0
The skill bundle contains logic in `scripts/stock_utils.py` that automatically executes `pip install --upgrade thsdk` via `subprocess.run` if the library is missing or outdated. While this behavior is explicitly documented in `SKILL.md` and aligns with the stated purpose of retrieving financial data, the use of programmatic package installation is a high-risk capability that can be exploited for unauthorized environment modification or supply chain attacks. No evidence of intentional malice, obfuscation, or data exfiltration was detected.
能力评估
Purpose & Capability
Name/description (stock data via thsdk) align with the included code and helpers: search/resolve functions, kline/realtime wrappers, and a template analyzer. There are no unrelated credentials, binaries, or config paths requested that would be out of scope for a market-data skill.
Instruction Scope
SKILL.md and the Python code restrict actions to searching symbols, resolving codes, and calling thsdk APIs. The instructions do not instruct the agent to read unrelated system files or exfiltrate data. The code does invoke pip to install thsdk and uses thsdk's THS object, which is expected for its purpose.
Install Mechanism
The skill will auto-run pip install (via subprocess.run) to install/upgrade the thsdk package if missing or old. Using pip is expected here, but runtime installation has moderate risk (it downloads code from package indexes). The install target is a package name (thsdk) rather than an arbitrary URL or archive, which reduces but does not eliminate risk.
Credentials
The skill declares no required environment variables (consistent with the bundle). The bundled references document that thsdk/THS can accept username/password or environment vars for account config, but the skill does not require or automatically read those secrets. If the user supplies THS credentials, the skill will use them via thsdk — this is proportional to the purpose but worth noting since credentials are optional and not declared.
Persistence & Privilege
The skill is not force-enabled (always: false) and does not modify other skills or global agent configuration. It will run when invoked and may install a Python package into the runtime environment, but it does not request elevated or persistent agent privileges beyond that.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ths-financial-data - 安装完成后,直接呼叫该 Skill 的名称或使用
/ths-financial-data触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
thes-financial-data 1.0.0 – Initial Release
- Provides unified access to stock market data (A-share, HK, US) via the thsdk library.
- Auto-installs and checks thsdk dependency (requires >= 1.7.14) with no user intervention.
- Allows flexible stock code input (Chinese, short codes, abbreviations); auto-converts to complete ths_code.
- Supports real-time quotes, stock info lookup, fund flow, daily K-line, and Wencai natural language queries.
- Handles ambiguous or multi-result queries by prompting user selection when multiple matches are found.
- Includes detailed code samples and workflow in documentation for rapid integration and usage.
元数据
常见问题
股票 是什么?
该skill用于获取股票市场数据,包括实时行情、中文名称查询、键盘缩写转换、资金流向和日K线数据。使用thsdk库提供同花顺数据接口支持。支持自动将中文、缩写、短代码转换为thsdk所需的完整ths_code格式。当匹配到多只股票时,会返回候选列表供用户选择。如未安装thsdk,会自动安装。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 481 次。
如何安装 股票?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ths-financial-data」即可一键安装,无需额外配置。
股票 是免费的吗?
是的,股票 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
股票 支持哪些平台?
股票 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 股票?
由 bensema(@bensema)开发并维护,当前版本 v1.0.0。
推荐 Skills