x402AgentTools

๐Ÿ’ฑExchange Rates (Live)

Live foreign-exchange reference rates from the European Central Bank (via frankfurter.dev): a full rate table against any base currency, or cross-rate conversion of any amount. Refreshed every business day by the ECB, cached one hour.

Worked examples

All rates vs USD

GET /api/v1/live/exchange-rates?op=rates&base=USD

Result: 1 USD = 1.42 AUD โ€ฆ

100 USD โ†’ EUR

GET /api/v1/live/exchange-rates?op=convert&from=USD&to=EUR&amount=100

Result: 87.89 EUR

1000 JPY โ†’ GBP

GET /api/v1/live/exchange-rates?op=convert&from=JPY&to=GBP&amount=1000

Result: 4.81 GBP

Machine API (x402)

$0.002 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol โ€” no accounts, no API keys.

GET /api/v1/live/exchange-rates?op=rates&base=USD HTTP/1.1
Host: agenttools-hub.vercel.app

โ†’ 402 (payment required, instructions in headers)
โ†’ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "live/exchange-rates",
  "input": {"op":"rates","base":"USD"},
  "result": { "value": null, "answer": "1 USD = 1.42 AUD โ€ฆ" }
}

Agent docs: /llms.txt ยท OpenAPI spec ยท integration guide

About this tool

Live foreign-exchange reference rates published by the European Central Bank, covering 30 major currencies. Get a full table against any base or convert exact amounts with cross rates โ€” the same numbers banks use for reference quoting.

cross rate: amount ร— (rate of FROM per EUR รท rate of TO per EUR), via ECB base

Frequently asked questions

How fresh are the rates?

The ECB publishes reference rates every business day around 16:00 CET. Results are cached server-side for one hour; the reference date is always included in the response.

Are these tradable rates?

No โ€” ECB reference rates are wholesale averages without retail spreads. Card and broker rates will differ by 0.5โ€“3%.

Popular conversions & variations

Related tools