tencent-finance-stock-price

Query real-time stock market data using Tencent Finance API. Supports Chinese A-shares, Hong Kong stocks, and US stocks. No API key required.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tencent-finance-stock-price" with this command: npx skills add yangzhe1991/tencent-finance-stock-price

Tencent Finance Stock Price

Query real-time stock quotes via Tencent Finance API.

Usage

uv run ~/.openclaw/skills/tencent-finance-stock-price/scripts/query_stock.py <stock1> [stock2] ...

Supported Input Formats

Chinese Names (Auto-mapped)

  • A-Share Indices: 上证指数, 科创50, 创业板指
  • HK Indices: 恒生指数, 恒生科技
  • US Indices: 标普500, 纳指100, 纳斯达克

Stock Codes

  • A-Shares: sh000001, sz399006, sh600519 (Moutai)
  • HK Stocks: hkHSI, hk01810 (Xiaomi)
  • US Stocks: usAAPL (Apple), usTSLA (Tesla)

Examples

# Query by Chinese name
uv run ~/.openclaw/skills/tencent-finance-stock-price/scripts/query_stock.py 上证指数 恒生科技

# Query by code
uv run ~/.openclaw/skills/tencent-finance-stock-price/scripts/query_stock.py sh000001 hkHSI usAAPL

# Query multiple stocks
uv run ~/.openclaw/skills/tencent-finance-stock-price/scripts/query_stock.py 上证指数 创业板指 恒生指数 纳指100

Output Format

Returns a formatted table with:

  • Name: Stock name
  • Code: Stock code
  • Price: Current price/points
  • Change: Change amount
  • Change%: Change percentage with 🟢/🔴 indicator

Data Source

  • API: http://qt.gtimg.cn/q=<codes>
  • Encoding: GB2312
  • Response format: v_code="data~data~..."
  • Key indices: 1=name, 3=price, 31=change, 32=change%

API Response Format

The Tencent API returns data in this format:

v_sh000001="1~上证指数~000001~4108.57~...~26.10~0.64~...";

Fields are separated by ~:

  • Index 1: Stock name
  • Index 3: Current price
  • Index 31: Change amount
  • Index 32: Change percentage

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Novel Workshop

多模型命题小说创作工坊。用户给出写作命题,自动完成:AI 写初稿 → 三路并行审阅(逻辑/文学/锐评)→ AI 改稿 → 飞书文档完整存档。 一键启动,全程自动,零手动干预。支持飞书实时进度推送。 触发词:命题写作、写一篇小说、命题小说、创作工坊、novel workshop

Registry SourceRecently Updated
General

Openclaw Commerce Shopify

Shopify store management through OpenClaw Commerce API

Registry SourceRecently Updated
General

Article Extract

提取微信公众号、博客、新闻等网页的正文内容,绕过反爬机制,纯文本输出。

Registry SourceRecently Updated
General

Compensation & Salary Benchmarking

Build competitive compensation plans using market data, salary bands, equity, bonuses, geographic pay adjustments, and retention risk scoring.

Registry SourceRecently Updated
68901kalin