Stock Watcher Skill
This skill provides comprehensive stock watchlist management capabilities, allowing users to track their favorite stocks and get performance summaries using real-time data from Tonghuashun (10jqka.com.cn).
Watchlist Market Quote Inquiry
When you request to check watchlist market quotes, the system will directly display the following information:
- Stock code and name for each stock
- Recent performance indicators (key data such as price change percentage)
- Detailed information link (clickable for more details)
No additional commands are required; a concise and clear market overview will be presented directly to you.
Watchlist Management
Add Stocks
Add stocks to the watchlist using 6-digit stock codes:
- Example: Add 600053 Jiuding Investment
Remove Stocks
Remove stocks from the watchlist via stock code:
View Watchlist
Display the complete list of all current stocks in the watchlist
Clear Watchlist
Completely clear all stocks from the watchlist
Data Source
Primarily uses Tonghuashun (10jqka.com.cn) as the data source:
- Stock Page:
https://stockpage.10jqka.com.cn/{stock_code}/
- Supports Shanghai, Shenzhen A-shares and STAR Market
- Provides real-time quotes, technical analysis and capital flow data
Watchlist Administration
File Format
Watchlist stocks are stored in
~/.clawdbot/stock_watcher/watchlist.txt
:
600053|Jiuding Investment
600018|Shanghai Port Group
688785|Hengyunchang
Supported Operations
- Add Stock: Verify stock code format and add to the watchlist
- Remove Stock: Precisely match and remove by stock code
- View List: Display current watchlist stocks
- Clear List: Completely clear the watchlist
- Market Summary: Obtain the latest data for all stocks and provide a concise summary
Market Summary Features
- Directly displays key market indicators with no redundant information
- Provides stock detail links for in-depth viewing
- Automatically handles network errors and data anomalies
- Reasonably controls request frequency (1 request per second)
Notes
- Stock Code Format: Use 6-digit numeric codes (e.g., )
- Data Delay: Market quotes may have a 1-3 minute delay
- Network Dependency: Requires an internet connection to obtain real-time data
- Market Scope: Mainly supports A-share market (Shanghai/Shenzhen/STAR Market)
Installation and Uninstallation
Installation
Run the
script to automatically create the necessary directory structure.
Uninstallation
Run the
script to completely remove all related files.
Script Description
All scripts use a unified configuration file
to manage storage paths, ensuring path consistency:
- - Add stocks to the watchlist
- - Remove stocks from the watchlist
- - List all watchlist stocks
- - Clear the watchlist
- - Obtain stock market summary