← 返回 Skills 市场
股票简单查询
作者
gaoren36-arch
· GitHub ↗
· v1.0.0
· MIT-0
258
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gaoren-stock-simple
功能描述
股票简单分析 - A股/港股/美股实时行情快速查询
使用说明 (SKILL.md)
Stock Analyst Simple - 股票简单分析
简介
股票快速查询工具,简单直接获取A股、港股和美股的实时行情。
数据源
| 市场 | 数据源 |
|---|---|
| A股 | 腾讯财经API |
| 港股 | 腾讯财经API |
| 美股 | Finnhub API |
支持的股票代码
A股 (6位数)
601857 中国石油 | 600519 贵州茅台 | 300750 宁德时代
港股 (5位数)
00700 腾讯 | 09988 阿里巴巴 | 02618 京东物流
美股 (英文)
JD 京东 | BABA 阿里巴巴 | TSLA 特斯拉
使用方式
查一下 601857
看看腾讯
茅台多少钱
输出示例
【中国石油】601857
价格: 12.14 CNY
涨跌: +0.01 (+0.28%)
安全使用建议
This skill largely does what it says (fetches stock quotes from Tencent and Finnhub), but the code includes a hardcoded Finnhub API key baked into simple_stock.py and doesn't formally declare the requests dependency. Hardcoded API keys can be abused by whoever controls the code and may cause unexpected rate limits or privacy issues. Before installing or running: 1) Prefer a version that accepts your own FINNHUB API key via an environment variable (e.g., FINNHUB_KEY) instead of a hardcoded token. 2) Confirm you trust the endpoints (qt.gtimg.cn and finnhub.io) because queries will be sent there. 3) Install requests in a controlled environment (virtualenv) and audit network access if needed. 4) If you rely on privacy or corporate network controls, do not run code that makes outbound HTTP requests without review. If the author cannot justify the embedded key or provide an env-var-based option, treat the package as risky.
功能分析
Type: OpenClaw Skill
Name: gaoren-stock-simple
Version: 1.0.0
The skill contains a hardcoded Finnhub API key in `simple_stock.py`, which is a security vulnerability (credential exposure). Additionally, while the A-share lookup includes input validation, the US stock lookup (`get_us_stock`) lacks sanitization for the stock symbol, potentially allowing for URL parameter injection. These issues appear to be unintentional security flaws rather than deliberate malice, but they fall under the 'suspicious' classification for vulnerabilities.
能力评估
Purpose & Capability
Name/description promise A股/港股/美股 real-time quotes; code and SKILL.md actually call Tencent (qt.gtimg.cn) for A/HK and Finnhub for US stocks, which is consistent. The skill requires Python but does not formally declare the 'requests' dependency (README mentions pip install requests).
Instruction Scope
SKILL.md and code limit actions to fetching remote quotes and printing results. The instructions do not ask the agent to read unrelated files, environment variables, or system state. Network calls go only to the documented data sources.
Install Mechanism
There is no install spec (instruction-only), so nothing is written to disk beyond included files. README suggests installing the requests package but the skill does not provide a formal requirements/install step.
Credentials
The code contains a hardcoded FINNHUB API key string (FINNHUB_KEY embedded in simple_stock.py) rather than using an environment variable; embedding a third-party credential in distributed code is risky (exposes the key, can be abused, causes accountability/rate-limit concerns). The skill requests no user credentials, so the embedded key is unexpected and disproportionate.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent system-level privileges or modify other skills/configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gaoren-stock-simple - 安装完成后,直接呼叫该 Skill 的名称或使用
/gaoren-stock-simple触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of stock-analyst-simple:
- Quickly query real-time quotes for A-shares, Hong Kong stocks, and US stocks.
- Supports common stock codes (A股6位、港股5位、美股代码).
- Simple natural language triggers like "查股票", "股票行情", "多少钱".
- Data sources: 腾讯财经API (A股/港股), Finnhub API (美股).
- Compatible with Windows, macOS, and Linux.
元数据
常见问题
股票简单查询 是什么?
股票简单分析 - A股/港股/美股实时行情快速查询. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 258 次。
如何安装 股票简单查询?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gaoren-stock-simple」即可一键安装,无需额外配置。
股票简单查询 是免费的吗?
是的,股票简单查询 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
股票简单查询 支持哪些平台?
股票简单查询 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 股票简单查询?
由 gaoren36-arch(@gaoren36-arch)开发并维护,当前版本 v1.0.0。
推荐 Skills