Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man exchange-rates

/exchange-rates(1)

agentutility / edge-finance / exchange-rates
PRICE / CALL
$0.002
USDC · base mainnet · scheme: exact
METHOD
POST
CATEGORY
uncategorized
STATUS
live
NAME
exchange-rates fx rates / forex / currency converter / usd to eur / ecb rates / historical exchange rates
SYNOPSIS
POST https://x402.org/v1/exchange-rates
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

FX rates / forex / currency converter / USD to EUR / ECB rates / historical exchange rates. Returns the latest or any historical day's exchange rates between currencies, sourced from the European Central Bank via the public Frankfurter API. Specify a base currency (default USD), an optional quote currency or list, an optional date (YYYY-MM-DD or 'latest'), and an optional amount to also receive a converted value when a single quote is supplied. No auth, commercial-OK.

INPUTrequest schema
propertytypedescriptionreq?
basestringISO 4217 base currency code (e.g. 'USD', 'EUR'). Default 'USD'.optional
quoteanySingle ISO 4217 quote currency, or array of codes. Omit for all available rates.optional
datestring'latest' (default) or a historical date in YYYY-MM-DD format.optional
amountnumberOptional amount in the base currency. When a single quote is supplied, the response includes the converted amount.optional
OUTPUTresponse shape
fieldtypedescription
basestringBase currency code used for the returned rates (e.g. USD, EUR), echoing the request's base parameter.
datestringDate of the rates in YYYY-MM-DD format; resolves to the latest ECB publication date when 'latest' was requested.
ratesstringObject mapping quote currency codes to their exchange rate against the base currency on the given date.
sourcestringUpstream data provider label, identifying the European Central Bank via the Frankfurter API.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/exchange-rates \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# install once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the exchange-rates tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-financeforexexchange-ratescurrency-converterfx-ratesecb-rateshistorical-ratesfrankfurter
methods
POST
cluster
edgefinance
price
$0.002 USDC per call
ADJACENTother endpoints in edgefinance
endpointdescriptionprice
kalshi-marketsKalshi markets / event contracts / Kalshi API / CFTC-regulated prediction markets / Kalshi browse / KalshiEX markets list.$0.005
polymarket-leaderboardPolymarket leaderboard / top traders / profit leaderboard / Polymarket whales / volume leaderboard / prediction market rankings.$0.005
polymarket-marketsPolymarket markets / prediction market data / Polymarket API / list active prediction markets / crypto-settled betting odds / event odds…$0.005
polymarket-tradesPolymarket trades / recent prediction market trades / on-chain bet history / Polymarket trade feed / Polymarket data API.$0.005
insider-form-4SEC Form 4 (insider transactions) normalizer.$0.01
insider-tradingInsider trading feed.$0.01
sec-filingSEC EDGAR filing fetcher + parser + summarizer.$0.01
bls-occupational-statsBLS Public Data API — wages, employment levels, growth by series ID.$0.02
SEE ALSO
agentutility(7) · edgefinance(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org