stock-watcher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStock Watcher Skill
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 同花顺 (10jqka.com.cn).
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
使用股票代码(6位数字)添加到自选股:
- 例如:添加 600053 九鼎投资
Add stocks to the watchlist using 6-digit stock codes:
- Example: Add 600053 Jiuding Investment
删除股票
Remove Stocks
通过股票代码删除自选股:
- 例如:删除 600053
Remove stocks from the watchlist via stock code:
- Example: Remove 600053
查看自选股列表
View Watchlist
显示当前所有自选股的完整列表
Display the complete list of all current stocks in the watchlist
清空自选股列表
Clear Watchlist
完全清空所有自选股
Completely clear all stocks from the watchlist
数据来源
Data Source
主要使用同花顺 (10jqka.com.cn) 作为数据源:
- 股票页面:
https://stockpage.10jqka.com.cn/{stock_code}/ - 支持沪深A股及科创板市场
- 提供实时行情、技术分析和资金流向数据
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
自选股存储在 :
~/.clawdbot/stock_watcher/watchlist.txt600053|九鼎投资
600018|上港集团
688785|恒运昌Watchlist stocks are stored in :
~/.clawdbot/stock_watcher/watchlist.txt600053|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
- 直接显示关键行情指标,无冗余信息
- 提供股票详情链接便于深入查看
- 自动处理网络错误和数据异常
- 合理控制请求频率(每秒1次)
- 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
- 股票代码格式: 使用6位数字代码(如 )
600053 - 数据延迟: 行情可能有1-3分钟延迟
- 网络依赖: 需要网络连接获取实时数据
- 市场范围: 主要支持A股市场(沪市/深市/科创板)
- Stock Code Format: Use 6-digit numeric codes (e.g., )
600053 - 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
运行 脚本自动创建必要的目录结构。
scripts/install.shRun the script to automatically create the necessary directory structure.
scripts/install.sh卸载
Uninstallation
运行 脚本完全移除所有相关文件。
scripts/uninstall.shRun the script to completely remove all related files.
scripts/uninstall.sh脚本说明
Script Description
所有脚本都使用统一的配置文件 来管理存储路径,确保路径一致性:
config.py- - 添加股票到自选股
add_stock.py - - 从自选股删除股票
remove_stock.py - - 列出所有自选股
list_stocks.py - - 清空自选股列表
clear_watchlist.py - - 获取股票行情摘要
summarize_performance.py
All scripts use a unified configuration file to manage storage paths, ensuring path consistency:
config.py- - Add stocks to the watchlist
add_stock.py - - Remove stocks from the watchlist
remove_stock.py - - List all watchlist stocks
list_stocks.py - - Clear the watchlist
clear_watchlist.py - - Obtain stock market summary
summarize_performance.py