Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man exchange-rates

/exchange-rates

agentutility / edge-finance / exchange-rates
PRICE / CALL
$0.002
USDC · base mainnet · scheme: exact
METHOD
POST
CATEGORY
uncategorized
STATUS
live
NAME
exchange-rates exchange rates
SYNOPSIS
POST https://x402.agentutility.ai/exchange-rates
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

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

Exchange rates. Latest or historical FX rates between currencies, sourced from the European Central Bank (Frankfurter API). 30+ currency pairs. Optional amount conversion. No commercial restrictions. 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.

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.agentutility.ai/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 the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the exchange-rates tool from your MCP-aware agent.
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-marketsLists live Kalshi event contract markets from api.elections.kalshi.com, with filters for status, series ticker, event ticker, free-text q…$0.005
market-filterFilters Polymarket prediction markets by query, category, tag, liquidity, open/closed status, and sort order, on a demand-matching route.$0.005
marketsLists and searches Polymarket prediction markets, backed by gamma-api public market data under an exact buyer-demand slug.$0.005
polymarket-filterPolymarket filter API / filter prediction markets by category, query, tag, status, liquidity, and sort order.$0.005
polymarket-leaderboardReturns the Polymarket leaderboard: top accounts by realized profit OR notional volume over 1d/1w/1m/all-time windows.$0.005
polymarket-marketsLists live Polymarket prediction markets from gamma-api, with filters for category, tag, free-text query, and minimum liquidity.$0.005
polymarket-searchSearches Polymarket prediction markets by question, description, and slug over the returned market page, with optional category/tag/liqui…$0.005
polymarket-tradesRecent trades from any Polymarket market (by slug or conditionId) or for a specific wallet.$0.005
SEE ALSO
agentutility · edgefinance · x402 · mcp · llms.txt · registry.json · bazaar.x402.org