stock-price

Query real-time A-share, Hong Kong stock, ETF, and index quotes via Tencent market API.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/riipandi/minis-skills --skill stock-price-riipandi
Or copy as Structured Prompt for Agentā–¼
Please help me install this Agent Skill.
Skill: stock-price
Source: https://github.com/riipandi/minis-skills/tree/main/stock-price
Command: npx skills add https://github.com/riipandi/minis-skills --skill stock-price-riipandi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Getting real-time quotes for Chinese A-shares, Hong Kong stocks, ETFs, and market indices usually requires paid data services or API keys. This Skill fetches live prices, change percentages, volume, and turnover directly from free public market APIs with a single curl request. ## Core Features & Use Cases - Real-time Quote Queries: Retrieve latest price, change %, volume, and turnover for Shanghai/Shenzhen A-shares, Hong Kong stocks, ETFs, and indices using the Tencent market API (qt.gtimg.cn) with no login or API key. - Multi-source Fallback: Fall back to Sina Finance for major indices and hot sectors, or East Money for sector fund flow data when the primary source is unavailable. - Batch Queries: Query up to 20 stock codes in a single request using simple code formats like sh600519, sz000001, or hk00700. - Use Case: Ask for the current level of the Shanghai Composite and ChiNext indices plus the price of Tencent Holdings, and receive a formatted report like "Shanghai Composite: 4068.57 (-0.73%)". ## Quick Start Check the real-time prices of the Shanghai Composite index, Kweichow Moutai (sh600519), and Tencent Holdings (hk00700).

Frequently Asked Questions about stock-price

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get real-time A-share stock quotes without an API key?ā–¼

Use the Tencent market API by sending a curl request to qt.gtimg.cn/q= followed by comma-separated stock codes like sh600519 or sz000001. No login or API key is required, and the response contains price, change percentage, volume, and turnover.

What stock code format does the Tencent market API use?ā–¼

Shanghai A-shares use sh plus a 6-digit code (sh600519), Shenzhen A-shares use sz plus 6 digits (sz000001), and Hong Kong stocks use hk plus 5 digits (hk00700). Indices follow the same pattern, such as sh000001 for the Shanghai Composite.

Are Hong Kong stock quotes real-time with this API?ā–¼

Hong Kong stock quotes from the free Tencent API have a 15-minute delay. A-share and index quotes update in real time during trading hours and show closing prices after the market closes.

How many stock codes can I query in one request?ā–¼

A single query should not exceed 20 stock codes. Codes are comma-separated in the request URL, and the response uses GBK encoding with tilde-separated fields.

What happens if the Tencent market API is unavailable?ā–¼

The Skill falls back to Sina Finance (gu.sina.cn) for major indices and hot sectors, or East Money for sector fund flow data. East Money requires a desktop user agent to access its data pages.