This skill provides comprehensive stock watchlist management capabilities, allowing users to track their favorite stocks and get performance summaries using real-time data from 同花顺 (10jqka.com.cn).
View Watchlist Quotes
When you request to view watchlist quotes, the system will directly display the following information:
- The code and name of each stock
- Recent performance indicators (key data such as price change percentage)
- Detailed information links (clickable to view)
No additional commands are needed; a concise and clear quote overview is presented directly to you.
Manage Watchlist
Add Stock
Use a stock code (6 digits) to add to the watchlist:
- For example: Add 600053 九鼎投资
Delete Stock
Delete a watchlist stock by stock code:
- For example: Delete 600053
View Watchlist
Display the complete list of all current watchlist stocks
Clear Watchlist
Completely clear all watchlist stocks
Data Source
Mainly uses同花顺 (10jqka.com.cn) as the data source:
- Stock pages:
https://stockpage.10jqka.com.cn/{stock_code}/ - Supports Shanghai and Shenzhen A-shares and the STAR Market
- Provides real-time quotes, technical analysis, and capital flow data
Watchlist Management
File Format
The watchlist is stored in ~/.clawdbot/stock_watcher/watchlist.txt:
600053|九鼎投资
600018|上港集团
688785|恒运昌
Supported Operations
- Add stock: Validate the stock code format and add it to the watchlist
- Delete stock: Delete by exact match on stock code
- View list: Display the current watchlist
- Clear list: Completely clear the watchlist
- Quote summary: Get the latest data for all stocks and provide a concise summary
Quote Summary Features
- Directly display key quote indicators with no redundant information
- Provide stock detail links for further viewing
- Automatically handle network errors and data anomalies
- Reasonably control request frequency (once per second)
Notes
- Stock code format: Use a 6-digit numeric code (such as
600053) - Data delay: Quotes may be delayed by 1-3 minutes
- Network dependency: A network connection is required to obtain real-time data
- Market scope: Mainly supports the A-share market (Shanghai/Shenzhen/STAR Market)
Installation and Uninstallation
Install
Run the scripts/install.sh script to automatically create the necessary directory structure.
Uninstall
Run the scripts/uninstall.sh script to completely remove all related files.
Script Description
All scripts use a unified configuration file config.py to manage the storage path, ensuring path consistency:
add_stock.py- Add a stock to the watchlistremove_stock.py- Delete a stock from the watchlistlist_stocks.py- List all watchlist stocksclear_watchlist.py- Clear the watchlistsummarize_performance.py- Get a stock quote summary