Skip to content
Fourohtwo

x402-gateway.blackwoodstate8.workers.dev/v1/fx-rates

Use when you need currency exchange rates, fx rates or forex conversion of an amount between two currencies like EUR and GBP. Do not use for live trading quotes, intraday or crypto rates (ECB rates update once per business day). Returns JSON with currency exchange rates: official ECB euro reference FX rates (free at ecb.europa.eu) for about 30 currencies, rebased to any base as cross rates, with o

BaseAnswering
POSThttps://x402-gateway.blackwoodstate8.workers.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-gateway.blackwoodstate8.workers.dev/v1/fx-rates", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount":100,"base":"USD","symbols":["EUR","BRL","JPY","GBP"]}),
});
console.log(await res.json());

Example input

{
  "amount": 100,
  "base": "USD",
  "symbols": [
    "EUR",
    "BRL",
    "JPY",
    "GBP"
  ]
}

More from Currency Exchange Rates (ECB)