Skip to content
Fourohtwo

Batch currency conversion

agents.crowdspark.me/v1/fx/convert/batch

Batch currency conversion: up to 25 amounts in one call, each with its own source currency and up to 5 targets, at latest or historical rates (one date per call). 200+ currencies. For multi-currency invoices, expense reports, carts and payouts. Bad items get per-item errors, not a failed call. Blended central bank mid rates from Frankfurter.

BaseAnswering
POSThttps://agents.crowdspark.me/v1/fx/convert/batch

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

// 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://agents.crowdspark.me/v1/fx/convert/batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"items":[{"to":"EUR,GBP","from":"USD","amount":1250},{"to":"USD","from":"JPY","amount":98000},{"to":"USD","from":"NGN","amount":500}]}),
});
console.log(await res.json());

Example input

{
  "items": [
    {
      "to": "EUR,GBP",
      "from": "USD",
      "amount": 1250
    },
    {
      "to": "USD",
      "from": "JPY",
      "amount": 98000
    },
    {
      "to": "USD",
      "from": "NGN",
      "amount": 500
    }
  ]
}

More from Agent ToolsProvider status