Die Oberfläche ist lokalisiert; Skill-Beschreibungen und -Dokumente werden per KI automatisch in Ihre Sprache übersetzt. Code, Befehle, Pfade und Fachbegriffe bleiben im Original, maßgeblich ist das Dokument des Autors.
Skills entdecken
Entwicklung · SKILL.md

stock-price

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?"

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill-Dokumentation

GitHub

name: stock-price description: > 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?" version: 1.0.0

Real-Time Stock, ETF, and Index Quotes

Data Sources (by Priority)

PriorityData SourceFeatures
PreferredTencent Quotes API (qt.gtimg.cn)Fastest; get all data with a single curl command, no login required
AlternativeSina Finance (gu.sina.cn)Homepage displays market indices and the top 6 popular industries
AlternativeEast Money (data.eastmoney.com/bkzj/hy.html)Sector capital flows; desktop user agent required

Tencent Quotes API (Preferred)

Request Format

curl -s "qt.gtimg.cn/q=<list of codes, comma-separated>"

Stock Code Format

MarketFormatExample
Shanghai A-sharessh + 6-digit codesh600519 (Kweichow Moutai)
Shenzhen A-sharessz + 6-digit codesz000001 (Ping An Bank)
Hong Kong stockshk + 5-digit codehk00700 (Tencent Holdings)
SSE Composite Indexsh000001SSE Composite Index
ChiNext Indexsz399006ChiNext Index

Return Format

Returned text is separated by ~: v_="1~~..."

Key field indexes (separated by ~, starting from 0):

  • 1: Name
  • 3: Latest price
  • 32: Percentage change (%)
  • 6: Trading volume (lots)
  • 7: Trading value (yuan)

Example

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]

Sina Finance (Alternative)

navigate: https://gu.sina.cn get_readable: Extract market indices, popular industries, and the number of stocks up and down

Reporting Format

SSE Composite Index: 4068.57 (-0.73%) ChiNext Index: 2140.32 (+0.85%)

Notes

  • Updates in real time during trading hours; after hours, the closing price is displayed
  • The free version for Hong Kong stocks has a 15-minute delay
  • A single query should include no more than 20 codes
  • The returned encoding is GBK
Gespeicherte Skills