Otto AI · FX Rates

by Otto AI

GETBaseSolana

$0.001

per call · USD Coin on Base

Live + reference foreign-exchange (forex) rates, base USD. LIVE near-real-time mid quotes for the 12 most-traded currencies (EUR, GBP, JPY, CHF, CAD, AUD, NZD, CNY, HKD, SGD, SEK, KRW), refreshed every minute with an honest market-open/stale flag, PLUS the official ECB daily reference table for ~30 currencies. Derive any cross-rate or pair. For agents pricing cross-border ops, treasury, invoicing and FX conversion. Keyless, pay-per-call.

Endpoint

GET https://x402.ottoai.services/fx-rates

279

Calls / 30d

29

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.ottoai.services/fx-rates", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.ottoai.services/fx-rates" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "base": "USD",
    "generatedAt": "2026-06-29T12:37:10.000Z",
    "live": {
      "asOf": "2026-06-29T12:37:06.000Z",
      "marketOpen": true,
      "rates": {
        "AUD": 1.4495,
        "CAD": 1.4206,
        "CHF": 0.8088,
        "CNY": 6.7836,
        "EUR": 0.8768,
        "GBP": 0.7559,
        "HKD": 7.8415,
        "JPY": 161.89,
        "KRW": 1543.51,
        "NZD": 1.7698,
        "SEK": 9.7314,
        "SGD": 1.2938
      },
      "source": "Yahoo",
      "stale": false,
      "staleSymbols": []
    },
    "liveAvailable": true,
    "reference": {
      "date": "2026-06-26",
      "rates": {
        "AUD": 1.4488,
        "CAD": 1.4182,
        "CHF": 0.8085,
        "CNY": 6.7982,
        "EUR": 0.8771,
        "GBP": 0.7565,
        "JPY": 161.65
      },
      "source": "ECB"
    }
  },
  "meta": {
    "degraded": false,
    "generatedAt": "",
    "stalenessSec": 0,
    "validUntil": ""
  },
  "status": "success"
}

Payment details

Pay to0x0e84ddedaae6a779c462c22a59f301ec31b6b808
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Otto AI & similar services