Skip to content
Fourohtwo

A-share (Shanghai/Shenzhen) trading calendar for the next N days

cn-data-x402.cn-data-x402-worker.workers.dev/cn/trading-days

A-share (Shanghai/Shenzhen) trading calendar for the next N days: which dates are trading days and which are closed, holiday names included. Correctly treats make-up workdays that fall on weekends as CLOSED for the exchange — a common mistake. Optional ?days=1-120 and ?from=YYYY-MM-DD. No API key and no signup: call the endpoint, it answers HTTP 402 with the payment terms, pay per request in USDC

BaseUnchecked
GEThttps://cn-data-x402.cn-data-x402-worker.workers.dev/cn/trading-days

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/trading-days?days=7");
console.log(await res.json());

Example input

{
  "days": 7
}