allstock-data
Stock market data query skill for China A-shares, Hong Kong, and US markets. Uses Tencent Finance HTTP API by default (lightweight, no install needed), with optional adata SDK for more comprehensive data. Supports real-time quotes, K-line history, order book analysis, and more.
Why use this skill?
Integrate real-time stock data into your AI agent with the allstock-data skill. Easily track China A-shares, HK, and US markets with zero-install API access.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hacksing/allstock-dataWhat This Skill Does
The allstock-data skill empowers your OpenClaw agent to act as a real-time financial market terminal. It bridges the gap between raw market data and actionable intelligence by providing seamless access to China A-shares, Hong Kong equities, and US stock markets. Leveraging the efficient Tencent Finance HTTP API, the skill retrieves real-time quotes, K-line historical data, and market indices without the need for complex database setups or external installations. Whether you are tracking the Shanghai Composite, monitoring high-growth US tech tickers like NVIDIA or Tesla, or analyzing Hong Kong blue-chips, this skill delivers precise market data directly to your AI workflow. For users requiring deeper financial insights or institutional-grade analytics, it also supports optional integration with the adata SDK, making it a versatile tool for both retail investors and technical analysts.
Installation
You can install the skill by executing the following command in your terminal:
clawhub install openclaw/skills/skills/hacksing/allstock-data
Ensure your environment has basic network connectivity, as the default Tencent API implementation relies on HTTP requests to fetch external market data. No complex dependencies are required for the default functionality.
Use Cases
- Automated Portfolio Monitoring: Create a recurring task for the AI to fetch the latest prices of your watchlist and notify you of significant percentage changes.
- Technical Analysis Research: Use the K-line historical data endpoint to retrieve price action trends for specific stocks, which can then be processed by OpenClaw's analysis modules.
- Market Sentiment Tracking: Combine real-time quotes with news-scraping skills to correlate price volatility with current market events.
- Quick Market Snapshot: Instantly query the performance of major global indices like the CSI 300 or S&P 500 without leaving your AI console.
Example Prompts
- "What is the current real-time price of Moutai (sh600519) and how much has it changed today?"
- "Can you pull the latest price for Apple (usAAPL) and Tesla (usTSLA) and compare their performance?"
- "Show me the status of the major indices including the Shanghai Composite (sh000001) and the Hang Seng Index."
Tips & Limitations
- Rate Limiting: As this skill uses the public Tencent Finance API, avoid sending high-frequency automated requests to prevent potential IP blocking.
- Data Accuracy: Always verify critical trading decisions against official brokerage platforms, as free APIs may have slight latency or data delays.
- Code Formatting: When querying stocks, ensure you use the correct prefix (e.g., 'sh' for Shanghai, 'hk' for Hong Kong, 'us' for US markets) to prevent lookup errors.
- Offline Usage: This skill strictly requires an internet connection to function as it does not cache market data locally.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hacksing-allstock-data": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
feishu-user
Feishu document operations (User Access Token version). Use user access token for authentication. When you need to read, create, write, or append Feishu documents.
safe-update
Update OpenClaw from source code. Supports custom project path and branch. Includes pulling latest branch, rebasing, building and installing, restarting service. Triggered when user asks to update OpenClaw, sync source, rebase branch, or rebuild.
social-writer
Social media copywriting and distillation skill. Transforms any news, dev logs, or external articles into high-engagement, opinionated tech posts with authentic voice.
social-reader
Social media content scraping and automation skill. Supports real-time single post reading, as well as scheduled batch patrol, LLM distillation, and review notifications.
safe-backup
Backup OpenClaw state directory and workspace. Includes excluding sensitive files, packaging for backup. Triggered when user asks to backup, export, or save state.