An automated stock trading log and portfolio management system for A-shares and Hong Kong markets.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install trading-log
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install trading-log using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Trading Log System is a sophisticated utility designed to record every transaction in A-shares and Hong Kong markets, providing users with a streamlined way to manage their financial portfolios. By leveraging Openclaw Skills, this tool automates the tedious aspects of trading, such as calculating weighted average costs and tracking realized versus floating profits. It serves as a personal financial ledger that bridge the gap between manual record-keeping and professional trading platforms.
This skill is particularly powerful for developers and traders who want to maintain a permanent, queryable history of their market activities. With integrated real-time price fetching through reliable APIs, it ensures that your portfolio valuation is always current, allowing for informed decision-making based on the latest market data available within the Openclaw Skills ecosystem.
To get started with this component of Openclaw Skills, ensure you have Python 3 installed. Place the core script and data files in a consistent directory.
# Navigate to your working directory
cd ~/Desktop
# Run a command (e.g., check current positions)
python3 交易日志.py 持仓
Ensure that scripts/trading_log.py and the initial JSON data file are present in the same path for proper data persistence.
The skill organizes all transaction and portfolio data within a JSON structure for maximum portability and readability.
| Attribute | Description |
|---|---|
| Timestamp | Precise time of the transaction (to the second) |
| Security Code | 6-digit standardized stock or fund code |
| Transaction Details | Price, quantity, and total amount |
| Direction | Identification of Buy, Sell, or Full Liquidation |
| Meta Information | Stock name, trade reason, and optional account tags |
| P&L Logic | Automated calculation of floating vs. realized gains |
Loading
An AI-powered video creation engine designed to scale professional development, career pathing, and workforce upskilling through high-quality video content.

A high-performance markdown compiler that transforms tagged documents into professional editorial HTML pages with built-in AI plugin support.

An AI agent skill that transforms text responses into high-quality OGG voice messages for Telegram using local neural synthesis.

Fetch and summarize Google Calendar events using a local host wrapper for instant agenda access.

A specialized diagnostic tool to ensure e-commerce storefronts are visible, readable, and purchasable by autonomous AI shopping agents.

A specialized utility designed to diagnose and resolve stability issues, restart loops, and macOS-specific throttling for your local environment.








































