openclaw-stock-skill
使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/1018466411/openclaw-stock-data-skillWhat This Skill Does
The openclaw-stock-skill is a specialized agentic capability designed for high-precision financial data retrieval. It acts as a bridge between the OpenClaw agent and the Diemeng data ecosystem. By configuring your API Key, the skill enables your AI agent to fetch real-time and historical A-share market data, including daily/intraday candlestick charts, complex financial factors, and valuation metrics. It is built to facilitate quantitative research and automated financial reporting within your workflow.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/1018466411/openclaw-stock-data-skill
After installation, configure your credentials in ~/.openclaw/openclaw.json by mapping your STOCK_API_KEY under the skill's entry configuration. Ensure the baseUrl is set correctly if you are pointing to a custom instance of the data service.
Use Cases
- Technical Analysis: Automatically retrieve and analyze K-line patterns for specific A-share tickers over custom time windows.
- Portfolio Monitoring: Fetch real-time intraday snapshots and valuation metrics to track performance of current holdings.
- Fundamental Research: Extract daily financial factors such as PE, PB, and turnover rates to screen for potential investment candidates.
- Report Automation: Generate scheduled market summary reports by aggregating daily transaction data across multiple stocks.
Example Prompts
- "Check the daily K-line data for 000001.SZ and 600519.SH for the month of January 2024 and identify any significant trends."
- "What is the current PE and PB valuation for BYD Company and how does its intraday price action look for today?"
- "List all trading calendar events for this week and provide a snapshot of the major indices performance."
Tips & Limitations
- Rate Limiting: The service implements strict rate limiting and blacklist logic. Avoid spamming requests or frequently cycling your API Key in loops. Implement local caching where possible.
- Authentication: Always use the HTTP Header
apiKeyfor security. The skill supports fallback methods, but the Header is the standard for OpenClaw integrations. - Data Integrity: Note that financial data can fluctuate; ensure your agent verifies the response codes (200) before proceeding with critical financial calculations.
- Configuration: If you encounter connection issues, verify your
baseUrlconfiguration in the skill manifest, as local network proxies might interfere with the defaulthttps://data.diemeng.chatendpoint.
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-1018466411-openclaw-stock-data-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api