← 返回 Skills 市场
tjefferson

股票查询 / Stock Price Query

作者 Jeff · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ✓ 安全检测通过
7230
总下载
20
收藏
62
当前安装
14
版本数
在 OpenClaw 中安装
/install stock-price-query
功能描述
股票查询 / Stock price query. 实时查询股票、股价、行情数据,支持 A 股(沪深)、港股、美股及大盘指数(上证、深证、恒生、纳斯达克、道琼斯、标普500),支持批量查询,零配置开箱即用。Real-time stock price, quote and market index query fo...
安全使用建议
Reasonable to install for stock price lookups if you are comfortable with requested ticker symbols being sent to Tencent Finance. In privacy- or compliance-sensitive environments, confirm that outbound access to qt.gtimg.cn is allowed and avoid using it for sensitive watchlists or unreleased trading context.
功能分析
Type: OpenClaw Skill Name: stock-price-query Version: 1.2.1 The stock-price-query skill is a legitimate tool for fetching real-time market data from Tencent Finance's public API (qt.gtimg.cn). The core logic in `scripts/stock_query.py` includes robust input validation using regular expressions to prevent command injection and strictly adheres to its stated purpose. No evidence of data exfiltration, malicious execution, or harmful prompt instructions was found across the code or documentation.
能力评估
Purpose & Capability
The documented purpose is real-time stock and market-index lookup, and the script only validates ticker inputs, calls the Tencent Finance quote endpoint, parses quote data, and prints JSON results.
Instruction Scope
The invocation examples include broad stock-related phrases, so the skill could run on somewhat ambiguous stock-market questions, but the resulting action is a low-impact quote lookup rather than account, file, or system mutation.
Install Mechanism
The package contains markdown plus one Python script and declares only a python3 binary requirement; the external API endpoint is disclosed in the documentation, though not separately expressed as a metadata permission.
Credentials
Outbound HTTPS requests to qt.gtimg.cn are proportionate for real-time market data, but queried ticker symbols are sent to that third-party service.
Persistence & Privilege
No artifact evidence shows background workers, privilege escalation, local file indexing, credential/session access, or persistence mechanisms.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install stock-price-query
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /stock-price-query 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
规避 ClawHub 安全扫描器对 'API Key' 关键词的误判(skill 实际无需任何凭证);新增数据实时性说明段落
v1.2.0
优化 ClawHub 改版后的搜索可发现性:新增 Data & APIs 分类、description 中文关键词前置、display name 支持双语
v1.1.6
Fix search ranking: restore natural description, remove keyword stuffing that may have triggered spam filter
v1.1.5
SEO: optimize description and tags for better ClawHub search ranking
v1.1.4
Add pe_ratio and market_cap fields when available from data source. Add --version flag. Restore CHANGELOG.md and README.md documentation.
v1.1.3
- Removed documentation files: CHANGELOG.md and README.md. - No changes to the skill’s code or functionality. - The skill’s interface, usage, and features remain unchanged.
v1.1.2
精简tags
v1.1.1
**Batch stock quote and index support added.** - 支持批量同时查询多只股票,提升多股对比与 watchlist 场景体验。 - 覆盖大盘指数(如上证、恒指、纳指,道琼斯等)行情查询,支持主流中英文别名。 - 输入安全校验增强,批量模式下单次最多支持 20 只股票,部分失败友好提示。 - 输出格式新增批量展示规范,单只/批量均优化涨跌视觉表现。 - 元数据与 description 增补“批量”、“指数”等关键词标签,便于筛选及调用。
v1.0.7
- Clarified that the script only accepts stock codes as input and does not support direct Chinese (or English) stock name queries. - Added instructions for agents to perform name-to-code mapping based on a provided table before calling the script. - Updated "Edge Cases" to specify that stock names not in the mapping table should prompt the user for a stock code, and that agents are responsible for this logic. - No changes to APIs, system requirements, or usage for end users.
v1.0.6
- Updated the skill description for brevity and clarity, emphasizing trigger conditions and supported markets. - Made the skill's use cases and trigger logic more explicit in the documentation intro. - No changes to scripts or functionality; this update only refines SKILL.md documentation content.
v1.0.5
- Added detailed tags and refined description for improved discoverability and clarity in skill metadata. - Explicitly states no API key or runtime dependencies are needed. - Improved and clarified Chinese and English descriptions for a broader audience. - Enhanced bullet points and format in trigger and example usage for concise, chat-friendly communication. - No changes to technical behavior or output format.
v1.0.4
- Output format for stock query results is now more compact, removing the long table and avoiding Feishu message pagination. - Amount values are converted to "亿" or "万" units for better readability when large. - Removed redundant documents: CHANGELOG.md and README.md. - No behavioral or API changes; all query and edge-case handling remains as before.
v1.0.3
Version 1.0.3 - Added strict input validation for stock code and market parameters to prevent command injection and ensure input safety. - Updated documentation to clarify input restrictions (only allow alphanumeric stock codes and whitelist markets). - Improved error handling for invalid or unsafe input cases.
v1.0.2
- Adds detailed usage and trigger criteria for querying real-time prices of A-shares, Hong Kong stocks, and US stocks. - Explains how stock codes and market types are parsed automatically from user input or selected from a mapping table. - Provides sample query script usage, expected output format, and comprehensive guidance for both standard and edge-case scenarios. - Introduces clear error messages and self-healing suggestions in response to invalid codes, network errors, market closures, or API rate limits. - Standardizes the user-facing response format for a more user-friendly presentation of stock data.
元数据
Slug stock-price-query
版本 1.2.1
许可证 MIT-0
累计安装 245
当前安装数 62
历史版本数 14
常见问题

股票查询 / Stock Price Query 是什么?

股票查询 / Stock price query. 实时查询股票、股价、行情数据,支持 A 股(沪深)、港股、美股及大盘指数(上证、深证、恒生、纳斯达克、道琼斯、标普500),支持批量查询,零配置开箱即用。Real-time stock price, quote and market index query fo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 7230 次。

如何安装 股票查询 / Stock Price Query?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-price-query」即可一键安装,无需额外配置。

股票查询 / Stock Price Query 是免费的吗?

是的,股票查询 / Stock Price Query 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

股票查询 / Stock Price Query 支持哪些平台?

股票查询 / Stock Price Query 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 股票查询 / Stock Price Query?

由 Jeff(@tjefferson)开发并维护,当前版本 v1.2.1。

💬 留言讨论