Skip to content
Fourohtwo

x402-apis.pages.dev/v1/fx-rates

Use when an agent needs an official exchange rate to convert prices, invoices or portfolios: ECB euro reference rates for ~30 currencies (USD, GBP, CHF, JPY, CNY …), latest or for any day since 1999, with any base currency (cross rates computed from the ECB fix). Returns the exact rate date. Source named in every answer. Bad input: HTTP 400 before payment; unknown currency or outage is not charged

BaseAnswering
GEThttps://x402-apis.pages.dev/v1/fx-rates

Uptime100% of 1 check 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

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://x402-apis.pages.dev/v1/fx-rates?base=USD&symbols=EUR%2CCHF%2CGBP");
console.log(await res.json());

Example input

{
  "base": "USD",
  "symbols": "EUR,CHF,GBP"
}

More from Official Macro & FX Data