协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
stock-price【开发与工程】Check real-time quotes for A-shares, Hong Kong stocks, ETFs, and indices (latest price, percentage change, trading volume, etc.). Uses the Tencent Quotes API (qt.gtimg.cn); no login or API key required. Triggers when a user says "check stock prices," "real-time quotes," "ETF prices," "stock quotes," or "what is the market index?"
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
| Priority | Data Source | Features |
|---|---|---|
| Preferred | Tencent Quotes API (qt.gtimg.cn) | Fastest; get all data with a single curl command, no login required |
| Alternative | Sina Finance (gu.sina.cn) | Homepage displays market indices and the top 6 popular industries |
| Alternative | East Money (data.eastmoney.com/bkzj/hy.html) | Sector capital flows; desktop user agent required |
curl -s "qt.gtimg.cn/q=<list of codes, comma-separated>"
| Market | Format | Example |
|---|---|---|
| Shanghai A-shares | sh + 6-digit code | sh600519 (Kweichow Moutai) |
| Shenzhen A-shares | sz + 6-digit code | sz000001 (Ping An Bank) |
| Hong Kong stocks | hk + 5-digit code | hk00700 (Tencent Holdings) |
| SSE Composite Index | sh000001 | SSE Composite Index |
| ChiNext Index | sz399006 | ChiNext Index |
Returned text is separated by ~:
v_="1~~..."
Key field indexes (separated by ~, starting from 0):
curl -s "qt.gtimg.cn/q=sh000001,sz399006,sh588170,hk00700"
Python parsing example: fields = line.split('="')[1].rstrip('";').split('~') name = fields[1] price = fields[3] change_pct = fields[32]
navigate: https://gu.sina.cn get_readable: Extract market indices, popular industries, and the number of stocks up and down
SSE Composite Index: 4068.57 (-0.73%) ChiNext Index: 2140.32 (+0.85%)