SuperAPI AI Directory

stock-watcher

Data & analytics

View repository

Updated 10-15 16:42

About this 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).

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 list

Display the complete list of all current watchlist stocks

Clear watchlist list

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 the Shanghai and Shenzhen A-share and STAR Market markets
  • 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

  1. Add stock: Validate the stock code format and add it to the watchlist
  2. Delete stock: Delete by exact match on stock code
  3. View list: Display the current watchlist stocks
  4. Clear list: Completely clear the watchlist stocks
  5. 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 descriptions

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 watchlist
  • remove_stock.py - Delete a stock from the watchlist
  • list_stocks.py - List all watchlist stocks
  • clear_watchlist.py - Clear the watchlist list
  • summarize_performance.py - Get a stock quote summary