# CN Data – Chinese Stock Index Quotes

> CN Data – Chinese Stock Index 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 Chinese stock market index quotes (e.g. Shanghai Composite) as structured JSON, paid per-call via x402/USDC on Base.

## Facts

- Endpoint: GET https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/index?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-index-quotes-6efd5d61
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YEenmFBwmQRcaArG32LPZ

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-index-quotes-6efd5d61
```

Example prompt: What is the Shanghai Composite (上证指数) index trading at right now? Pull the latest quote including price, change, and percent change.

## When to prefer this

Choose this endpoint when you need machine-readable, real-time Chinese stock index quotes (especially Shanghai/Shenzhen) without an API key or subscription — particularly useful when building agents that need pay-per-use access to China market data, or when Chinese-language financial web pages need to be consumed as structured JSON.

## Known failure modes

- HTTP 402 returned before payment is made — agent must pay USDC on Base and retry
- Empty quotes array if all symbols fail to resolve
- Partial results with some entries in the failed array if individual index feeds are unavailable
- Network timeout from the Cloudflare Worker edge if upstream data source is slow

## 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 ok:true and a data object containing a quotes array. Each quote has name (Chinese index name), symbol (e.g. 000001.SS), price, change, changePercent, previousClose, and currency (CNY). A failed array lists any symbols that could not be fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "failed": [],
   "quotes": [
    {
     "name": "上证指数",
     "price": 3842.19,
     "change": 11.74,
     "symbol": "000001.SS",
     "currency": "CNY",
     "changePercent": 0.3065,
     "previousClose": 3830.45
    }
   ]
  },
  "endpoint": "/cn/index"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cn-data-chinese-stock-index-quotes-6efd5d61/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)
