Daily reference exchange rates for 30 currencies incl
x402-weather.onrender.com/fx
Daily reference exchange rates for 30 currencies incl. USD, EUR, GBP, ZAR, JPY, CNY, INR, BRL, from the European Central Bank (ECB). Any base currency, target filter and amount conversion; non-EUR bases are calculated from ECB euro rates. Note: the ECB publishes these rates free of charge at ecb.europa.eu. Invalid or unknown inputs return an error and are not charged.
GET
https://x402-weather.onrender.com/fxUptime100% of 3 checks in 30 days
30 days agoToday
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://x402-weather.onrender.com/fx?amount=100&base=USD&symbols=ZAR%2CEUR");
console.log(await res.json());Example input
{
"amount": 100,
"base": "USD",
"symbols": "ZAR,EUR"
}