← Back to Skills Marketplace
tjefferson

股票查询 / Stock Price Query

by Jeff · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ✓ Security Clean
7253
Downloads
20
Stars
62
Active Installs
14
Versions
Install in OpenClaw
/install stock-price-query
Description
股票查询 / Stock price query. 实时查询股票、股价、行情数据,支持 A 股(沪深)、港股、美股及大盘指数(上证、深证、恒生、纳斯达克、道琼斯、标普500),支持批量查询,零配置开箱即用。Real-time stock price, quote and market index query fo...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install stock-price-query
  3. After installation, invoke the skill by name or use /stock-price-query
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug stock-price-query
Version 1.2.1
License MIT-0
All-time Installs 245
Active Installs 62
Total Versions 14
Frequently Asked Questions

What is 股票查询 / Stock Price Query?

股票查询 / Stock price query. 实时查询股票、股价、行情数据,支持 A 股(沪深)、港股、美股及大盘指数(上证、深证、恒生、纳斯达克、道琼斯、标普500),支持批量查询,零配置开箱即用。Real-time stock price, quote and market index query fo... It is an AI Agent Skill for Claude Code / OpenClaw, with 7253 downloads so far.

How do I install 股票查询 / Stock Price Query?

Run "/install stock-price-query" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 股票查询 / Stock Price Query free?

Yes, 股票查询 / Stock Price Query is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 股票查询 / Stock Price Query support?

股票查询 / Stock Price Query is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 股票查询 / Stock Price Query?

It is built and maintained by Jeff (@tjefferson); the current version is v1.2.1.

💬 Comments