Install
openclaw skills install @xiaoxiaohuayu/stock-watcher-publishopenclaw skills install @xiaoxiaohuayu/stock-watcher-publishUse this skill to manage a local A-share watchlist and summarize current quotes.
17 for 6xxxxx; infers market 33 for 0xxxxx and 3xxxxx.data/watchlist.txt.STOCK_WATCHER_DATA_DIR to override the watchlist directory.https://stockpage.10jqka.com.cn/{stock_code}/ when the API path fails.Do not store browser cookies, user login tokens, or other credentials in this skill.
Run scripts from the skill folder or by passing their full path:
bash scripts/install.sh
python3 scripts/list_stocks.py
python3 scripts/add_stock.py 600188 兖矿能源
python3 scripts/remove_stock.py 600188
python3 scripts/clear_watchlist.py
python3 scripts/summarize_performance.py
If dependencies are missing, install them first:
python3 -m pip install -r requirements.txt
data/watchlist.txt uses one stock per line:
600188|兖矿能源
002384|东山精密
Set STOCK_WATCHER_DATA_DIR when the watchlist should live outside the skill folder:
STOCK_WATCHER_DATA_DIR="$HOME/.stock-watcher" python3 scripts/list_stocks.py
summarize_performance.py prints concise quote summaries:
600188 - 兖矿能源 - 最新价: 20.27 - 涨跌幅: 1.35% - 涨跌额: 0.27 - 成交额: 1229165230.0 - 来源: API
If the API fails but HTML parsing succeeds, output is marked 来源: HTML.