← Back to Skills Marketplace
552
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install sina-stock
Description
获取 A 股实时股票行情数据(上证指数、深证成指、创业板指等),使用新浪财经 API。无需 API Key。
Usage Guidance
This skill is a small Python script that makes outbound HTTPS requests to Sina's public hq.sinajs.cn endpoint and prints parsed results; it requests no credentials and has no install steps. If you plan to use it in a controlled environment, note: it requires network access (may be blocked by firewalls), respects no credentials so it cannot access protected accounts, and you should follow Sina's usage/rate-limit terms. As always, run the script in a safe environment or review the included scripts/get_stock.py before installing to confirm it meets your policies.
Capability Analysis
Type: OpenClaw Skill
Name: sina-stock
Version: 0.1.0
The skill's core script, `scripts/get_stock.py`, directly concatenates user-provided stock codes into the URL string for `urllib.request` without robust input sanitization. While `urllib.request` mitigates shell injection risks, this constitutes a URL injection vulnerability. This flaw, though not indicative of intentional malice, represents a risky capability that could potentially be exploited for malformed requests or unintended interactions with the target API, classifying it as suspicious rather than benign.
Capability Assessment
Purpose & Capability
Name/description match the included code and docs. The script fetches data from https://hq.sinajs.cn and parses GBK CSV responses; required functionality (no API key, A‑share indices and stocks) is consistent with files and metadata.
Instruction Scope
SKILL.md only instructs running the bundled Python script; the script only performs outbound HTTP(S) requests to Sina, decodes and parses the response, and prints/formats results. It does not read other system files, environment variables, or send data to other third-party endpoints.
Install Mechanism
No install spec; the skill is instruction-only with a small included Python script. There are no downloads, package installs, or extracted archives. Risk from installation is minimal.
Credentials
No environment variables, credentials, or config paths are requested. _meta.json notes python3 as a required binary which is proportionate for a Python script. No unrelated secrets are required.
Persistence & Privilege
Skill does not request always:true, does not modify other skills or system configs, and has no persistent background components. It runs on demand as a simple script.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sina-stock - After installation, invoke the skill by name or use
/sina-stock - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Sina Stock skill initial release – fetch real-time A-share stock data easily.
- Get real-time data for major China stock indices and any A-share stock code via Sina Finance API.
- Supports multiple output formats: standard text, JSON, and simplified view.
- No API key required; free to use.
- Displays price, percent change, trading volume, turnover, and detailed quote info.
- CLI script with flexible arguments for batch queries and easy integration.
Metadata
Frequently Asked Questions
What is Sina Stock?
获取 A 股实时股票行情数据(上证指数、深证成指、创业板指等),使用新浪财经 API。无需 API Key。 It is an AI Agent Skill for Claude Code / OpenClaw, with 552 downloads so far.
How do I install Sina Stock?
Run "/install sina-stock" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Sina Stock free?
Yes, Sina Stock is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Sina Stock support?
Sina Stock is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Sina Stock?
It is built and maintained by Sunnyfo (@sunnyfo); the current version is v0.1.0.
More Skills