cn-data-x402.cn-data-x402-worker.workers.dev/cn/kline
Historical daily, weekly or monthly candlesticks (K线) for A-shares, Hong Kong stocks, US stocks and Chinese indices, straight from a Chinese quote feed: each bar carries date, open, high, low, close, volume and its change percent versus the previous bar. Ships what a raw feed does not — moving averages (MA5/MA10/MA20/MA60) computed over the returned window, the window's own high/low and start-to-e
GET
https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/klineUptime100% of 2 checks in 30 days
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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/kline?adj=qfq&days=60&period=day&symbol=600519");
console.log(await res.json());Example input
{
"adj": "qfq",
"days": 60,
"period": "day",
"symbol": "600519"
}