M

MacroPulse · FX Convert

by MacroPulse

GETBaseSolanaArbitrumPolygonFraxtalWorld ChainMonadX LayerHyperEVMAlgorandXRP LedgerBNB Chain

$0.005

per call · USD Coin on Base

Convert an amount between currencies at the official European Central Bank reference rate. Answers "what is the USD to EUR exchange rate", "convert 250 GBP to JPY", "what was the EUR/USD FX rate on 2024-03-15". Multi-currency in one call (to=EUR,GBP,JPY), 30+ currencies, historical daily fixings back to 1999. Deterministic and cacheable: real ECB data, not a model estimate — identical inputs always return the identical rate. Keyless, sub-second.

Endpoint

GET https://macropulse.theaslangroupllc.com/api/fx/convert

16

Calls / 30d

2

Unique payers / 30d

Aug 17

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://macropulse.theaslangroupllc.com/api/fx/convert", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://macropulse.theaslangroupllc.com/api/fx/convert?amount=%5Bobject+Object%5D&date=%5Bobject+Object%5D&from=%5Bobject+Object%5D&to=%5Bobject+Object%5D" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "amount_in": 250,
  "cache_hint_seconds": 3600,
  "date": "2026-07-13",
  "deterministic": true,
  "from": "USD",
  "is_last_available_fixing": false,
  "requested_date": null,
  "source": "European Central Bank reference rates (via Frankfurter)",
  "to": {
    "EUR": {
      "amount": 218.8375,
      "rate": 0.87535
    },
    "GBP": {
      "amount": 186.735,
      "rate": 0.74694
    }
  }
}

Payment details

Pay to0x50ab2018c06c6e4eaa9ba52057eb55ed284912fc
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon, Fraxtal, World Chain, Monad, X Layer, HyperEVM, Algorand, XRP Ledger, BNB Chain
Schemesexact

Is this your API?

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

Get featured →

More from MacroPulse & similar services