← Back to Skills Marketplace
9071
Downloads
20
Stars
0
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
Install only if you are comfortable with stock symbols you query being sent to Tencent's public quote API. The skill does not trade, access brokerage accounts, store credentials, or persist background behavior, but its responses are mainly formatted for Chinese-language finance use.
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
Credentials
Outbound HTTPS to qt.gtimg.cn is proportionate for live quote retrieval, and inputs are limited to up to 20 validated symbols, but users should understand that queried symbols are sent to Tencent's service.
Install Mechanism
The front matter declares only a python3 binary requirement and has no installer, dependency fetch, or hook; outbound network use is documented in the skill text and API reference but not represented as an explicit manifest permission.
Instruction Scope
The activation examples include broad stock-market phrases and the output template is mostly Chinese, which could cause occasional over-triggering or locale mismatch, but the instructions remain limited to quote lookup and formatting.
Persistence & Privilege
No persistence, privilege escalation, credential handling, local indexing, file writes, subprocess execution, or system modification was found.
Purpose & Capability
The stated purpose is real-time stock and index lookup, and the bundled script only validates stock symbols, calls the documented quote endpoint, parses quote data, and prints JSON results.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install stock-price-query - After installation, invoke the skill by name or use
/stock-price-query - 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
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 9071 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.
More Skills