cn402

China Data Gateway for AI Agents · 中国数据 · 直供 AI 代理

Pay-per-call APIs designed for autonomous agents. Built on the X402 protocol — settled in USDC on Base, no accounts, no API keys, no subscriptions.

Your agent makes a request, receives a 402, signs the payment, gets the data. Sub-second.

Endpoints

/forex $0.03 Real-time FX rates - USDCNY and major pairs, ECB reference data. live
/holiday $0.01 China official holidays & workday lookup with makeup days. planned
/astock $0.10 A-share market snapshot — SSE/SZSE indices, northbound flow. planned
/crypto $0.05 Multi-asset crypto snapshot with RSI/MA technical indicators. planned

How it works

X402 is HTTP's native payment standard. The server returns 402 Payment Required with payment terms; the client signs an EIP-3009 authorization; the facilitator settles on-chain; the request is fulfilled. End-to-end in roughly one second.

curl https://api.cn402.com/forex?pair=USDCNY
# HTTP/1.1 402 Payment Required
# X-Payment-Required: { network: "base", amount: "30000", asset: "USDC", ... }
# agent signs and retries with payment header
# HTTP/1.1 200 OK
# { "pair": "USDCNY", "onshore": 7.21, "offshore": 7.24, ... }

Why cn402

Most agent-facing APIs are US-centric. cn402 closes the China data gap — A-share quotes, CNY rates, mainland holidays — priced for the high-frequency consumption pattern of autonomous agents, settled trustlessly on Base.

Status

Infrastructure is live. Endpoints are being built and rolled out one at a time.

Solo project. github.com/CNX402