Skip to content
Fourohtwo

RMB reference exchange rates

cn-data-x402.cn-data-x402-worker.workers.dev/cn/fx

RMB reference exchange rates. Returns the CNY cross table plus foreign-to-CNY rates for USD, EUR, JPY, HKD, GBP, KRW, SGD and AUD. No API key and no signup: call the endpoint, it answers HTTP 402 with the payment terms, pay per request in USDC on Base with any x402-compatible client or wallet, then retry the same request to get the data.

BaseAnswering
GEThttps://cn-data-x402.cn-data-x402-worker.workers.dev/cn/fx

Uptime100% 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/fx");
console.log(await res.json());

Example input

{}