Skip to content
Fourohtwo

Use when an agent needs a fiat conversion with any base currency

pay.brianbooms.com/api/v1/data/fx-convert

Use when an agent needs a fiat conversion with any base currency — Fixer and OXR lock the base on free tiers; this one doesn't. ECB reference rates, honest as_of timestamps, no subscription. Pass from/to codes and amount. Use permitted: build it into your products and services, paid or free. Raw redistribution of the feed itself is prohibited.

BasePolygonArbitrumAvalancheAnswering
GEThttps://pay.brianbooms.com/api/v1/data/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://pay.brianbooms.com/api/v1/data/fx-convert?amount=Amount+to+convert.+Example%3A+100&from=3-letter+code%2C+any+base.+Example%3A+EUR&to=3-letter+code.+Example%3A+JPY");
console.log(await res.json());

Example input

{
  "amount": "Amount to convert. Example: 100",
  "from": "3-letter code, any base. Example: EUR",
  "to": "3-letter code. Example: JPY"
}

More from Steward