stock-assistant
A股交易辅助工具,集行情查询、交易记录管理、盈亏分析于一体。 用于:(1) 查询A股实时行情 (2) 管理交易记录 (3) 计算持仓和盈亏 (4) 导入/导出CSV 代码目录:D:\aicode\stock-assistant(跨平台:代码会自动适配路径) 调用方式:from fetcher import get_quote 或 python main.py quote <股票代码>
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/54meteor/stock-assistantWhat This Skill Does
The stock-assistant is a specialized OpenClaw agent skill designed to streamline A-share market monitoring and portfolio management. It serves as a comprehensive bridge between raw market data and personal financial records. The tool automates the fetching of real-time stock quotes, enables the persistent storage and retrieval of trade history using an integrated SQLite database, and provides analytical tools for PnL (profit and loss) calculations. Designed for cross-platform compatibility, it ensures that your financial tracking remains consistent whether you are on Windows, Linux, or macOS.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/54meteor/stock-assistant
After installation, ensure you have the required Python dependencies installed (listed in requirements.txt). The skill will automatically configure the data directory at D:\aicode\stock-assistant\data (or the equivalent local path) upon its first execution.
Use Cases
- Real-time Monitoring: Quickly check the current performance of any A-share stock, including high/low prices, turnover, and market capitalization.
- Portfolio Management: Maintain a clean ledger of all buy and sell orders. You can import historical trade data via CSV files or log them manually as transactions occur.
- Financial Analysis: Instantly calculate unrealized or realized gains and losses for any ticker by comparing your cost basis against live market prices.
- Market Alerts: Integrate with platforms like Feishu (Lark) to receive push notifications on price changes, making it ideal for automated alerts for specific stocks or multi-ticker portfolios.
Example Prompts
- "Check the current market status for 600016 and tell me the dynamic P/E ratio."
- "Log a new trade: I bought 1000 shares of 000001 at a price of 12.50."
- "Calculate my total profit for 600016 based on my current holdings and current market price, then push the summary to my Feishu webhook."
Tips & Limitations
- Data Accuracy: Always verify that the stock code is formatted correctly (e.g., 600016 for A-shares).
- Persistence: The skill uses a local SQLite database. It is recommended to perform regular backups of the
data/folder to prevent loss of trade history. - Dependencies: The skill requires an active internet connection to fetch real-time data. If you are behind a strict corporate firewall, ensure that the fetcher module has outbound network access.
- Automation: When using the
--webhookfeature for Feishu, ensure your URL is kept secret and not shared in public code repositories.
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-54meteor-stock-assistant": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, network-access, code-execution
Related Skills
message-split
长消息自动拆分 skill。当回复内容超过渠道限制时,自动将消息拆分为多条有序发送,避免截断或丢消息。Auto-split long messages into smaller chunks before sending, with sequence markers.
feishu-voice-send
飞书语音消息发送:使用官方 API 上传 OPUS 音频并发送语音消息,解决 OpenClaw 内置发送缺少 duration 参数的问题。| Send voice messages via Feishu official API, fixing OpenClaw's missing duration parameter bug.
article-tts
拍照或文字转音频:文章照片 OCR 提取文字,或直接接收文字,生成 Microsoft Edge TTS 语音,支持中英文、自动转写、语速调节、逐句拆分。| Capture article photos (OCR) or plain text, generate natural audio via Edge TTS. Bilingual support (EN/ZH), configurable speed, voice, and sentence splitting.