Skip to content
Fourohtwo

1gateway.dev/v1/fx/convert

Use when you need to convert an amount between currencies (USD↔KRW, EUR→JPY, ...) at the official ECB reference rate, today or on a past date. Input: from, to (1–10 comma-separated), amount (default 1), optional date (YYYY-MM-DD since 1999-01-04; weekends use the prior fixing). Output: JSON per target rate, inverse rate and converted result, the fixing date used. Source: ECB statistics; reference

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/fx/convert

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://1gateway.dev/v1/fx/convert?amount=250&date=2025-06-30&from=USD&to=KRW%2CJPY");
console.log(await res.json());

Example input

{
  "amount": 250,
  "date": "2025-06-30",
  "from": "USD",
  "to": "KRW,JPY"
}

More from 1gateway