Use when an agent has to convert money in a figure someone will audit
flat-rate-llm.kikoribera03.workers.dev/v1/fx/convert
Use when an agent has to convert money in a figure someone will audit: between any two of the ~30 currencies in the European Central Bank's official reference rates, on today's publication or on a past date within the last 90 days. Returns the rate used, its publication date and whether it was crossed through the euro. This is the auditable rate accounting and customs ask for, not a live market qu
GET
https://flat-rate-llm.kikoribera03.workers.dev/v1/fx/convertUptime100% of 2 checks 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://flat-rate-llm.kikoribera03.workers.dev/v1/fx/convert?amount=100&from=USD&to=EUR");
console.log(await res.json());Example input
{
"amount": 100,
"from": "USD",
"to": "EUR"
}