LaunchKit · 2026
Back to Skills

allstock-data

Query A-share and US stock data via Tencent Finance API.

0
630 downloads
by @hacksing

Setup & Installation

openclaw skills install @hacksing/allstock-data

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install allstock-data

Version History

v1.0.2Feb 28, 2026 - Version note by skill developer:

- Expanded support to include Hong Kong and US equities via Tencent Finance HTTP API. - Added multiple query examples and detailed instructions for real-time quotes, K-line history, and order book analysis for China A-shares, Hong Kong, and US markets. - Introduced optional adata SDK integration for advanced data (e.g. capital flow, sector data, financial statements). - Enhanced use-case guidance and clarified when to use each data source. - Improved field mapping, parameter explanation, and practical usage notes for all endpoints. - Added tips for encoding, data delay, error handling, and request rates.

What This Skill Does

Queries real-time and historical stock data for China A-shares, Hong Kong, and US markets. Uses the Tencent Finance HTTP API by default with no installation required. Optionally integrates the adata SDK for deeper data including capital flows and sector analysis.

The Tencent Finance API requires no API key, no account, and no installation, making it faster to use than most market data services.

When to use it

  • Check current price of a Shanghai-listed stock
  • Pull 10-day K-line history for a ChiNext stock
  • Compare real-time quotes for multiple stocks in one request
  • Analyze order book buy/sell ratios for Moutai
  • Fetch batch A-share quotes for a personal watchlist

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: What is the current price of Moutai (sh600519)?

AGENT
  1. 1Constructs request URL: http://qt.gtimg.cn/q=sh600519
  2. 2Sends HTTP GET request using curl
  3. 3Decodes GBK-encoded response text
  4. 4Parses the tilde-delimited fields to extract current price (index 3) and change % (index 31)
OUTPUT

Moutai (600519) is trading at 1460.00 CNY, down 0.43% from previous close.

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

adata Python package (pip install adata) — only if using optional adata SDK featuresProxy server IP and port — only if adata SDK cannot reach data sources directly