# CN Data – Chinese Stock Sector Performance Rankings

> CN Data – Chinese Stock Sector Performance Rankings 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 ranked lists of Chinese stock market sectors (industry, concept, or regional) sorted by price movement, including leader/laggard stocks and advance/decline counts.

## Facts

- Endpoint: GET https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/sector?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-sector-performance-rankings-344b8f43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yv08m99Qj_R58S2kswbos

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-sector-performance-rankings-344b8f43
```

Example prompt: Show me the top 10 Chinese industry sectors by today's gains — I want to see which sectors are leading the A-share market, including the best and worst performer within each sector.

## When to prefer this

Choose this endpoint when you need ranked, machine-readable Chinese stock sector data — especially when the original source (East Money) only publishes this as a web page. Prefer it over scraping Chinese financial sites directly, or when you need sector-level breadth (advancers/decliners) rather than individual stock quotes. It is the right choice for agents monitoring Chinese market rotation, sector momentum strategies, or building dashboards of A-share performance by industry, concept, or region.

## Known failure modes

- HTTP 402 returned before payment is made — must pay $0.02 USDC on Base and retry
- Invalid 'type' parameter value returns an error (only 'industry', 'concept', 'region' accepted)
- 'limit' outside 1–100 range may be rejected or clamped
- 'direction' value other than 'up' or 'down' may default or error
- Upstream East Money data feed outage may result in stale or missing sector data
- Network timeout from Cloudflare Worker if upstream 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 containing the requested sector type (industry/concept/region), sort direction, total sector count, and an ordered array of sector entries — each with sector code, Chinese name, rank, leader stock (code, name, change%), laggard stock (code, name, change%), count of advancing stocks, count of declining stocks, and the sector's net change percent. Source attribution is included.

## 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": {
      "type": {
       "type": "string",
       "description": "板块类型：industry（行业，默认）/ concept（概念）/ region（地域）"
      },
      "limit": {
       "type": "integer",
       "description": "返回板块条数 1-100，默认 20"
      },
      "direction": {
       "type": "string",
       "description": "排序方向：up（涨幅榜，默认）/ down（跌幅榜）"
      }
     }
    }
   },
   "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": {
   "type": "industry",
   "items": [
    {
     "code": "BK1306",
     "name": "蓄电池及其他电池",
     "rank": 1,
     "leader": {
      "code": "002733",
      "name": "雄韬股份",
      "changePercent": 10.02
     },
     "laggard": {
      "code": "603031",
      "name": "安孚科技",
      "changePercent": -4.06
     },
     "advancers": 8,
     "decliners": 2,
     "changePercent": 5.45
    }
   ],
   "source": "东方财富 板块行情（push2）",
   "returned": 2,
   "typeName": "行业板块",
   "direction": "up",
   "totalSectors": 496
  },
  "endpoint": "/cn/sector"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cn-data-chinese-stock-sector-performance-rankings-344b8f43/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)
