80trust / 100

Finance Fx Rates

by AllTheBot FX rates (ECB) in Markets & finance

x402 APIPassing, checked 5 h ago

Currency exchange rates and forex API: official ECB (European Central Bank) reference rates for ~30 currencies (USD, EUR, GBP, JPY, CHF, CNY...), any base currency, with currency conversion of an amount. Daily, no API key.

GET https://api.zkrobotics.fr/x402/finance/fx-rates

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
69 ms typical, 69 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.zkrobotics.fr/x402/finance/fx-rates?amount=100&base=USD&to=EUR%2CGBP%2CJPY"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.zkrobotics.fr%2Fx402%2Ffinance%2Ffx-rates
const res = await pay("https://api.zkrobotics.fr/x402/finance/fx-rates?amount=100&base=USD&to=EUR%2CGBP%2CJPY");
console.log(await res.json());

Example input

{
  "amount": "100",
  "base": "USD",
  "to": "EUR,GBP,JPY"
}

Example output

{
  "amount": 100,
  "base": "USD",
  "converted": {
    "EUR": 89.3975,
    "GBP": 75.7179,
    "JPY": 15827.8205
  },
  "date": "2026-10-08",
  "rates": {
    "EUR": 0.893975,
    "GBP": 0.757179,
    "JPY": 158.278205
  },
  "source": "European Central Bank euro foreign exchange reference rates"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed40269 ms$0.004