# Send allstock-data to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "allstock-data",
    "name": "allstock-data",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/HackSing/allstock-data",
    "canonicalUrl": "https://clawhub.ai/HackSing/allstock-data",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/allstock-data",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=allstock-data",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "allstock-data",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-11T16:28:29.443Z",
      "expiresAt": "2026-05-18T16:28:29.443Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=allstock-data",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=allstock-data",
        "contentDisposition": "attachment; filename=\"allstock-data-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "allstock-data"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/allstock-data"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/allstock-data",
    "downloadUrl": "https://openagent3.xyz/downloads/allstock-data",
    "agentUrl": "https://openagent3.xyz/skills/allstock-data/agent",
    "manifestUrl": "https://openagent3.xyz/skills/allstock-data/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/allstock-data/agent.md"
  }
}
```
## Documentation

### Stock Data Query

Two data sources are supported. Tencent Finance HTTP API is used by default:

Tencent Finance HTTP API (Default) — Lightweight, no installation, no proxy required
adata SDK (Optional) — More comprehensive data, requires installation and possibly a proxy

### 1.1 China A-Share Real-Time Quotes

Endpoint:

http://qt.gtimg.cn/q=<stock_code>

Stock Code Format:

MarketCode PrefixExampleShanghai Main Boardsh600xxxsh600519 (Moutai)STAR Marketsh688xxxsh688111Shenzhen Main Boardsz000xxxsz000001 (Ping An Bank)ChiNext (GEM)sz300xxxsz300033ETFsz159xxxsz159919

Index Codes:

IndexCodeSSE Composite (Shanghai)sh000001SZSE Component (Shenzhen)sz399001ChiNext Indexsz399006STAR 50sz399987CSI 300sh000300

Examples:

# Single stock
curl -s "http://qt.gtimg.cn/q=sh600519"

# Multiple stocks
curl -s "http://qt.gtimg.cn/q=sh600519,sh000001,sz399001"

Response Fields:

v_sh600519="1~贵州茅台~600519~1460.00~1466.21~1466.99~14146~6374~7772~..."
          ~  Name    ~ Code  ~  Open  ~  High  ~   Low  ~ Volume

IndexField0Market code1Stock name2Stock code3Current price4Open price5Low price6High price30Price change31Change %

### 1.2 Hong Kong Stock Real-Time Quotes

Endpoint:

http://qt.gtimg.cn/q=hk<stock_code>

Examples:

# Tencent Holdings
curl -s "http://qt.gtimg.cn/q=hk00700"

# Alibaba
curl -s "http://qt.gtimg.cn/q=hk09988"

### 1.3 US Stock Real-Time Quotes

Endpoint:

http://qt.gtimg.cn/q=us<ticker>

Examples:

# Apple
curl -s "http://qt.gtimg.cn/q=usAAPL"

# Tesla
curl -s "http://qt.gtimg.cn/q=usTSLA"

# NVIDIA
curl -s "http://qt.gtimg.cn/q=usNVDA"

### 1.4 K-Line Historical Data

Endpoint:

https://web.ifzq.gtimg.cn/appstock/app/fqkline/get

Parameters:

ParameterDescription_varVariable name, e.g. kline_dayqfqparamstock_code, kline_type, start_date, end_date, count, adjust_type

K-Line Types: day / week / month

Adjustment Types: qfqa (forward-adjusted) / qfq (backward-adjusted) / empty (unadjusted)

Examples:

# Moutai daily K-line (last 10 days, forward-adjusted)
curl -s "https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_dayqfq&param=sh600519,day,,,10,qfqa"

# Ping An Bank weekly K-line (last 5 weeks)
curl -s "https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_weekqfq&param=sz000001,week,,,5,qfqa"

# ChiNext Index monthly K-line (last 3 months)
curl -s "https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_monthqfq&param=sz399006,month,,,3,qfqa"

Response Format:

{"day": [["2026-02-27", "1466.99", "1461.19", "1476.21", "1456.01", "13534"], ...]}
                Date       Open      Close      High       Low      Volume

### 1.5 Order Book Analysis

Endpoint:

http://qt.gtimg.cn/q=s_pk<stock_code>

Example:

curl -s "http://qt.gtimg.cn/q=s_pksh600519"

Returns: Buy/sell volume ratios (internal vs external trades)

### 2. adata SDK (Optional)

adata is an open-source A-share quantitative data library providing more comprehensive data. Requires installation and possibly a proxy.

### Installation

pip install adata

### Proxy Setup (if needed)

import adata
adata.proxy(is_proxy=True, ip='your-proxy-ip:port')

### Feature List

FeatureDescriptionStock Basic InfoAll A-share codes, share capital, SW industry classificationK-Line DataDaily/Weekly/Monthly, forward/backward adjustmentReal-Time QuotesBatch real-time pricingLevel-2 Order BookBid/ask depth dataCapital FlowIndividual stock capital flow analysisConcept SectorsThematic sector dataIndex DataMajor index quotesETFETF quotes

### Usage Examples

import adata

# Get all A-share stock codes
df = adata.stock.info.all_code()

# Get K-line data
df = adata.stock.market.get_market(
    stock_code='000001',
    k_type=1,           # 1=daily, 2=weekly, 3=monthly
    start_date='2024-01-01',
    adjust_type=1        # 0=unadjusted, 1=forward, 2=backward
)

# Real-time quotes
df = adata.stock.market.list_market_current(
    code_list=['000001', '600519']
)

### 3. Use Case Guide

ScenarioRecommended SourceQuick single stock price checkTencent Finance APIK-line historical dataTencent Finance APIBatch quote queriesTencent Finance APICapital flow dataadata SDKFull financial statementsadata SDKConcept/sector analysisadata SDKLevel-2 order bookTencent Finance API or adata SDK

### 4. Important Notes

Encoding: Tencent Finance API returns GBK-encoded text — decode accordingly
Change %: Use the API's built-in field (index 31) — do not calculate manually
Data Delay: Real-time data may have up to 15-minute delay
Request Rate: Avoid high-frequency requests — use batch queries when possible
Error Handling: Invalid stock codes return v_pv_none_match="1"
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: HackSing
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-11T16:28:29.443Z
- Expires at: 2026-05-18T16:28:29.443Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/allstock-data)
- [Send to Agent page](https://openagent3.xyz/skills/allstock-data/agent)
- [JSON manifest](https://openagent3.xyz/skills/allstock-data/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/allstock-data/agent.md)
- [Download page](https://openagent3.xyz/downloads/allstock-data)