Retrieving A-Share Real-time Market Data: Querying Quotes, Watchlists, and Sectors in the Agent

Introduction

If you ask “What is the current price of Moutai?” or “How is the market doing?” in a conversation, and the Agent lacks market data capabilities, it often resorts to vague explanations or tells you to check a trading software yourself. Writing your own crawlers or integrating third-party APIs involves handling code formats, field meanings, and various query types (time-sharing, moving averages, capital flow, etc.), which incurs significant maintenance costs.

The following is an introduction to the community Skill on SkillHub: “Get A-Share Real-time Market Data”. It consolidates A-share real-time quotes, indices, watchlists, and extended data (time-sharing, moving averages, capital flow, sectors, and Dragon-Tiger List) into a single capability that Agents can trigger via natural language. The page is marked as requires_api_key=false, meaning no separate API Key configuration is needed after installation.

What is this

“Get A-Share Real-time Market Data” is a Skill sourced from the SkillHub community (community), categorized under professional. Its coordinate is @user_512254e3/a-stock-quote. The current version is 1.9.0, maintained by the publisher user_512254e3.

Official Access:

  • Installation/API Page: https://api.skillhub.cn/user_512254e3/a-stock-quote
  • SkillHub Details Page: https://www.skillhub.cn/skills/user_512254e3/a-stock-quote

The Skill uses a universal SKILL.md format. The Agent loads and executes the query logic defined within when it matches user intent, rather than requiring you to manually write HTTP requests in the conversation.

Core Features

The following capabilities are derived from the SkillHub page and the scraped introduction, summarized by data type.

Real-time Individual Stock Quotes

  • Price, change percentage, trading volume, market capitalization
  • 5-level order book, limit order volume

Supported stock code formats include: 600519, sh600519, sz000001, 000858, etc. (with or without the exchange prefix is acceptable, subject to the Skill’s instructions).

Indices and the Broader Market

Supports querying major indices, such as the Shanghai Composite Index, Shenzhen Component Index, ChiNext Index, etc.; triggered when users ask about “indices” or “the market”.

Watchlist Management

  • Add, delete, and view watchlist stocks
  • One-click query for market data of the watchlist

Triggers watchlist-related capabilities when users mention “watchlist,” “my stocks,” or “watch list.”

Time-sharing and Moving Averages

  • 1-minute time-sharing data: Triggered when users ask about “time-sharing” or “minute volume”
  • Moving Averages: MA5 / MA10 / MA20 / MA60; Triggered when users ask about “moving averages,” “MA,” or “trend”

Capital Flow and Sectors

  • Main Capital Flow: Main net inflow/outflow, plus details for super-large, large, medium, and small orders
  • Northbound Capital query
  • Industry Sector performance ranking

Triggers corresponding capabilities when users ask about “capital flow,” “main force,” “northbound,” or “sectors,” “industries,” “ranking” respectively.

Dragon-Tiger List (LHB)

Listed stocks, buy/sell amounts, and brokerage department details; triggered when users ask about “Dragon-Tiger List,” “listed,” or “brokerage department.”

Installation and Activation

Method 1: Let the Agent install via official guidance

The installation prompt provided on the SkillHub page is: First read the SkillHub installation documentation, then install this Skill. You can send the following paragraph to an AI client that supports Skills:

Please install `@user_512254e3/a-stock-quote` according to https://skillhub.cn/install/skillhub.md.

Method 2: Use the skillhub CLI

If skillhub is already installed on your machine, you can install the Skill to the skills directory actually used by the current Agent (installing to the wrong directory will prevent the Agent from loading it; a client restart is required to take effect). The general process is as follows:

  1. Check if the CLI is installed:
command -v skillhub && skillhub --version
  1. If not installed, you can follow the SkillHub documentation to perform a complete installation (CLI + default Skill):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
  1. Install this Skill (replace <skills directory> with the path in your current environment):
skillhub install @user_512254e3/a-stock-quote --dir <skills directory>

Common client skills directories (excerpted from SkillHub installation documentation):

Client Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

Other OpenClaw-based clients have their corresponding skills directories, subject to Section 4 of the SkillHub documentation.

Restart or refresh the Agent after installation to ensure the new Skill is indexed.

Typical Usage

Official materials do not provide fixed shell command examples; usage is primarily based on natural language triggers. The following expressions are consistent with the usage scenarios in the Skill introduction. You can send similar questions directly to the Agent after installation (stock codes can be replaced with the targets you care about):

  1. Individual stock quotes: How much is 600519 now? What is the change percentage?
  2. Market index: How is the Shanghai Composite Index today?
  3. Watchlist: List the quotes for my watchlist / Add sz000001 to my watch list
  4. Time-sharing: 600519's 1-minute time-sharing and volume for today
  5. Moving Averages: The MA5 and MA20 trends for 000858
  6. Capital: Kweichow Moutai main capital flow, details for super-large and large orders / Today's Northbound capital status
  7. Sectors: Industry sector performance ranking
  8. Dragon-Tiger List: Today's Dragon-Tiger List stocks and brokerage details

The Agent will select the corresponding query based on the instructions in SKILL.md; specific returned fields are subject to the Skill runtime.

Use Cases and Notes

Who is it for

  • People who need to query A-share data via conversation in environments like Cursor or Claude Code, without wanting to build data scripts every time.
  • Those who want a single entry point covering various queries such as quotes, watchlists, indices, time-sharing, moving averages, capital, sectors, and the Dragon-Tiger List.

Community Skill and Data

  • Sourced from the SkillHub community (community). Data timeliness and accuracy depend on the Skill implementation and upstream data sources. Investment decisions should still rely on exchanges and licensed channels.
  • The page tag indicates requires_api_key=false, generally requiring no additional Key; if changed in future versions, the SkillHub details page shall prevail.

SkillHub Side Statistics (Page info as of 2026-10-20)

  • Rating: 100000
  • Downloads: 6414
  • Installations: 90

Conclusion

“Get A-Share Real-time Market Data” integrates common A-share query scenarios into the Skill trigger instructions. Combined with the SkillHub installation coordinate @user_512254e3/a-stock-quote, it is suitable as an A-share market data extension for Agents. Please refer to the official page for installation and updates: https://www.skillhub.cn/skills/user_512254e3/a-stock-quote

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye