ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 3/5

stock-assistant

A股交易辅助工具,集行情查询、交易记录管理、盈亏分析于一体。 用于:(1) 查询A股实时行情 (2) 管理交易记录 (3) 计算持仓和盈亏 (4) 导入/导出CSV 代码目录:D:\aicode\stock-assistant(跨平台:代码会自动适配路径) 调用方式:from fetcher import get_quote 或 python main.py quote <股票代码>

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/54meteor/stock-assistant
Or

What 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

  1. "Check the current market status for 600016 and tell me the dynamic P/E ratio."
  2. "Log a new trade: I bought 1000 shares of 000001 at a price of 12.50."
  3. "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 --webhook feature for Feishu, ensure your URL is kept secret and not shared in public code repositories.

Metadata

Author@54meteor
Stars4473
Views5
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-54meteor-stock-assistant": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#finance#stocks#trading#portfolio-management#automation
Safety Score: 3/5

Flags: file-write, file-read, network-access, code-execution