← Back to Skills Marketplace
417
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install pywencaistock
Description
使用 pywencai 库获取同花顺问财股票数据,支持实时行情、财务指标、龙虎榜、资金流向等查询。适用于需要快速获取A股市场数据的场景。
Usage Guidance
This skill appears to do what it says: wrap the third‑party pywencai library to fetch A‑share data. Before installing, consider the following:
- Review and trust the upstream pywencai package (pip). It will make network requests to retrieve data; inspect its code or pin a specific version if you need stability/trust.
- Do NOT apply the SSL-disable snippet from the troubleshooting section in production; it makes HTTPS connections insecure and can enable man‑in‑the‑middle attacks.
- The example script adds '/tmp/mootdx' to sys.path — harmless by itself, but avoid running arbitrary example scripts that modify import paths in sensitive environments.
- If you must supply login cookies or any credentials to access additional data, treat them as sensitive: provide them only in secure ways, prefer temporary/session tokens, and avoid embedding them in code.
- Run initial tests in an isolated environment (virtualenv/container) to observe network behavior and confirm no unexpected endpoints are contacted.
Overall the package is internally consistent with its stated purpose; the main residual risk is trusting the third‑party pywencai package and following the insecure SSL workaround.
Capability Analysis
Type: OpenClaw Skill
Name: pywencaistock
Version: 1.0.0
The skill bundle is classified as suspicious due to the inclusion of security vulnerabilities and irregular coding practices. Specifically, SKILL.md recommends disabling SSL certificate verification (ssl._create_unverified_context) as a troubleshooting step, which is a high-risk action that exposes the agent to man-in-the-middle attacks. Additionally, scripts/example.py contains a hardcoded path modification (sys.path.insert(0, '/tmp/mootdx')), which is an unusual practice that could be exploited in shared environments. While the core logic for fetching stock data via the pywencai library appears aligned with its stated purpose, these flaws introduce significant security risks.
Capability Assessment
Purpose & Capability
The name/description (pywencai access to 同花顺问财) matches the included code and docs. The code imports pywencai/pandas/BeautifulSoup and exposes search/top_gainers/dragon_tiger_list which aligns with advertised features. Minor oddity: scripts/example.py inserts '/tmp/mootdx' on sys.path — likely a convenience for some environments but not required for core functionality.
Instruction Scope
SKILL.md stays within scope: it instructs installing pywencai/pandas and shows how to call skill('pywencai-stock').search. It does include a troubleshooting snippet that disables SSL verification (ssl._create_default_https_context = ssl._create_unverified_context), which is insecure advice — functionally coherent but a security risk if followed. Instructions do not request extraneous files, system credentials, or unexpected external endpoints.
Install Mechanism
No install spec is provided (instruction-only). Recommended installs are standard pip packages (pywencai, pandas). No downloads from untrusted URLs, no extracted archives, and no unusual install locations in the core package files.
Credentials
The skill declares no required environment variables or credentials. SKILL.md notes some queries may need login cookies (a legitimate property of the upstream service) but does not demand unrelated secrets. There is no request for broad or unrelated credentials.
Persistence & Privilege
Skill does not request always:true and is user-invocable only. It contains no code that modifies other skills or global agent configuration. Autonomous invocation remains enabled (platform default) but is not combined with other red flags.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pywencaistock - After installation, invoke the skill by name or use
/pywencaistock - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of pywencai-stock skill.
- Enables retrieval of real-time A-share market data from Tonghuashun Wencai using the pywencai library.
- Supports queries for live quotes, financial indicators, capital flows, top gainers/losers, block/concept stock lists, and detailed stock info.
- Results are returned as structured pandas DataFrames for easy analysis.
- Designed for rapid, flexible stock data acquisition in a variety of finance-related scenarios.
Metadata
Frequently Asked Questions
What is PyWenCai Stock?
使用 pywencai 库获取同花顺问财股票数据,支持实时行情、财务指标、龙虎榜、资金流向等查询。适用于需要快速获取A股市场数据的场景。 It is an AI Agent Skill for Claude Code / OpenClaw, with 417 downloads so far.
How do I install PyWenCai Stock?
Run "/install pywencaistock" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PyWenCai Stock free?
Yes, PyWenCai Stock is completely free (open-source). You can download, install and use it at no cost.
Which platforms does PyWenCai Stock support?
PyWenCai Stock is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created PyWenCai Stock?
It is built and maintained by nnzenw (@nnzenw); the current version is v1.0.0.
More Skills