About cn-stock-price
cn-stock-price is a script for checking real-time prices of China A-share stocks. It suits users who need single-stock or batch lookups and includes a default list of major indexes and individual stocks.
Key features
- 01Check real-time A-share prices
- 02Query multiple stocks at once
- 03Use a default stock list
Use cases
- 01Check a stock's current price
- 02Look up several stock codes
- 03Review default indexes and stocks
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ nohumanera/ cn-stock-price --skill cn-stock-priceAfter installing, type/cn-stock-pricein Claude Code to confirm it loaded.
Bundled filesscripts/check.pyREADME.md
Details
From the project README股票价格查询工具
一个简单的中国A股实时股票价格查询脚本。
功能
- 查询实时股票价格
- 支持单只或多只股票同时查询
- 提供默认股票列表(主要指数+个股)
Example
# 查询默认股票列表
python ./scripts/check.py
# 查询指定股票(支持多只)
python ./scripts/check.py sh600519
python ./scripts/check.py sh600036 sz002352
Dependencies
- requests
Comments
Markdown supported