Introduction
Welcome to the Xe Currency Data API documentation.
Xe has delivered foreign-exchange data and tools for over 30 years. The Xe Currency Data API (XeCD) gives your application programmatic access to that same rate data: real-time and historical exchange rates for 170+ currencies, sourced and validated from 100+ global providers, central banks and financial institutions. Use it for conversions, pricing, reporting, reconciliation and analytics.
What you can do with the API?
The API is organized into groups of endpoints:
- Mid-market rates
- Convert from one base currency to one or more counter currencies —
convert_from - Convert to a target amount from one or more currencies —
convert_to - Historic rates for a single date/time —
historic_rate - Historic rates across a period (time-series) —
historic_rate/period - Monthly average rates —
monthly_average - Statistics for a period — average, high/low, standard deviation and volatility —
stats - Cryptocurrencies — pass
crypto=trueto access 20+ crypto assets (BTC, ETH, SOL, USDC, XRP…) on the currencies, conversion, historic and stats endpoints.
- Convert from one base currency to one or more counter currencies —
- Central bank rates
- Official rates published by a specified central bank —
central_bank_rate - Exchange rates and policy interest rates for one or more central banks, with the Central bank exchange & interest rates add-on —
v2/central_bank,v2/central_bank/interest_rate,v2/central_bank/exchange_rate - Supported central banks and what each one publishes —
v2/central_bank/metadata
- Official rates published by a specified central bank —
- Alternative source rates
- Rates posted by private banks, exchange markets, government entities and more —
alternative_source_rate
- Rates posted by private banks, exchange markets, government entities and more —
- Bid & ask rates (Beta)
- Bid and ask (buy/sell) rates against one or more counter currencies —
bid_ask
- Bid and ask (buy/sell) rates against one or more counter currencies —
- Reference & account
- List all available currencies —
currencies - Check your account details and usage —
account_info
- List all available currencies —