# CN Data – Chinese Stock Quotes

> CN Data – Chinese Stock Quotes is a paid API for AI agents from cn-data-x402.cn-data-x402-worker.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-16).

Returns real-time or latest market quote data (price, change, volume, high/low) for up to 5 Chinese or Hong Kong stock symbols in JSON format.

## Facts

- Endpoint: GET https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/stock?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cn-data-chinese-stock-quotes-8f7de22e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pUCDbYLfv4eo51ZO6t80v

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cn-data-chinese-stock-quotes-8f7de22e
```

Example prompt: What's the current stock price, daily change, and volume for Kweichow Moutai (600519) and Tencent (00700.HK)?

## When to prefer this

Use this endpoint when you need structured, machine-readable stock quote data for Chinese A-shares (Shanghai/Shenzhen) or Hong Kong-listed equities without needing an API key or account. It is ideal for agents that require on-demand, pay-per-call access to Chinese market data via the x402 micropayment protocol, especially when querying up to 5 symbols at a time. Prefer this over scraping Chinese financial web pages or setting up authenticated brokerage API accounts.

## Known failure modes

- Invalid or unrecognized symbol returns the ticker in the 'failed' array with partial:true
- More than 5 symbols provided may be rejected or truncated
- Payment not completed results in HTTP 402 with payment terms; data not returned until USDC payment on Base is confirmed
- Exchange or data source unavailable may result in empty quotes array
- Malformed symbol format (e.g. missing exchange prefix where required) may cause lookup failure

## How this service works

Chinese market and China-focused public data over the x402 protocol. No API key and no signup: call any endpoint, receive HTTP 402 with payment terms, pay the listed amount in USDC on Base and retry. Every response is JSON. Some Chinese-language sources are published only as web pages — these endpoints return them as clean, machine-readable JSON.

## Output

A JSON object with an array of stock quotes, each including the stock name, current price, price change, percentage change, day high/low, volume, currency (CNY or HKD), exchange name, market state (OPEN/CLOSED), previous close, and UTC market timestamp. Also includes a list of any failed symbols and a partial flag if some lookups succeeded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "symbol": {
       "type": "string",
       "description": "股票代码，逗号分隔最多 5 个：600519 / sh600519 / sz000001 / 00700.HK / hk00700"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "failed": [],
   "quotes": [
    {
     "name": "Kweichow Moutai Co., Ltd.",
     "price": 1487.5,
     "change": 10.5,
     "dayLow": 1470.2,
     "symbol": "600519.SS",
     "volume": 2134567,
     "dayHigh": 1495,
     "currency": "CNY",
     "exchange": "Shanghai",
     "marketState": "CLOSED",
     "changePercent": 0.7109,
     "marketTimeUtc": "2026-09-30T07:00:00.000Z",
     "previousClose": 1477
    }
   ],
   "partial": false
  },
  "endpoint": "/cn/stock"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cn-data-chinese-stock-quotes-8f7de22e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cn-data-x402.cn-data-x402-worker.workers.dev](https://www.zero.xyz/host/cn-data-x402.cn-data-x402-worker.workers.dev/llms.txt)
