agentleFS
OpenMinisOpenMinis/MinisSkills/stock-price/SKILL.md

stock-price

Skill438 starsChanged 3 months agoMITView on GitHub

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

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

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_<code>="1~<name><code><latest price><previous close><open>~..."

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.