← Back to Skills Marketplace
bensema

股票

by bensema · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
481
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install ths-financial-data
Description
该skill用于获取股票市场数据,包括实时行情、中文名称查询、键盘缩写转换、资金流向和日K线数据。使用thsdk库提供同花顺数据接口支持。支持自动将中文、缩写、短代码转换为thsdk所需的完整ths_code格式。当匹配到多只股票时,会返回候选列表供用户选择。如未安装thsdk,会自动安装。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ths-financial-data
  3. After installation, invoke the skill by name or use /ths-financial-data
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug ths-financial-data
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is 股票?

该skill用于获取股票市场数据,包括实时行情、中文名称查询、键盘缩写转换、资金流向和日K线数据。使用thsdk库提供同花顺数据接口支持。支持自动将中文、缩写、短代码转换为thsdk所需的完整ths_code格式。当匹配到多只股票时,会返回候选列表供用户选择。如未安装thsdk,会自动安装。 It is an AI Agent Skill for Claude Code / OpenClaw, with 481 downloads so far.

How do I install 股票?

Run "/install ths-financial-data" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 股票 free?

Yes, 股票 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 股票 support?

股票 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 股票?

It is built and maintained by bensema (@bensema); the current version is v1.0.0.

💬 Comments