API ReferenceAlternative source exchange rates

Foreign exchange rates posted by private banks, exchange markets, government entities & more.

GET
/v1/alternative_source_rate

In the example below, the endpoint will display all exchange ratesvreported by Maybank (the asterisk * represents ALL currencies).

https://xecdapi.xe.com/v1/alternative_source_rate?source=maybank&iso=*

Note on Alternative Source Rate Coverage: Some sources may experience temporary data gaps due to source website changes or access restrictions. For these sources, we continue to provide historical data and are working to restore full coverage.

Authorization

AuthorizationBearer <token>

API key created on your Xe Currency Data account's API page, sent as a Bearer token in the Authorization header.

In: header

Query Parameters

source*string

REQUIRED – Use the following source codes to represent the specific source you are querying for. The time(s) specified below highlights the time rates are published by each respective source within the API service.

SourceCountryNamePostsAvailable at (UTC)Effective forBid/Ask
anzAustraliaANZ Investment BankDaily16:00Same day✓
anz-fjFijiANZ Investment Bank (Fiji Markets)Daily23:00Same day✓
bazgSwitzerlandFederal Office for Customs and Border SecurityDaily07:00Same day
belarus_republicBelarusRepublic of Belarus Official WebsiteDaily08:00Same day
bmfGermanyFederal Ministry of FinanceMonthly1st of monthPrevious Month
BNAArgentinaBank of the Argentine Nation (Banco de la Nación Argentina)Daily17:00Same day✓
brazil_ptaxBrazilCentral Bank of Brazil PTAXDaily18:00Same day✓
citibank-vnVietnamCitibank Vietnam MarketsDaily11:00Same day✓
commerzbankGermanyCommerzbankDaily01:00Same day✓
cyprus_customsCyprusCyprus Customs & Excise DepartmentMonthlyEnd of MonthSame Month
egyptEgyptCentral Bank of Egypt (Market Rate)Daily14:00Same day✓
HKABHong KongHong Kong Association of BanksDaily01:00Same day✓
indonesia_treasuryIndonesiaIndonesia Treasury (Badan Kebijakan Fiskal)Daily01:00Same day
ireland_revenueIrelandRevenue - Irish Tax and CustomsMonthlyMonthlySame Month
maybankMalaysiaMaybankDaily06:00Same day✓
mitsubishi_ufgJapanMitsubishi UFJ Financial Group (Mitsubishi UFJ Financial Group)Daily03:00Same day✓
NatWestUnited Kingdom of Great Britain and Northern IrelandNational Westminster BankDaily09:00Same day✓
nzfmaNew ZealandNew Zealand Financial Markets AssociationDaily03:00Same day
peru-sbsPeruSuperintendency of Banking, Insurance and Private Pension Fund Administrators (Superintendencia de Banca, Seguros y AFP (República del Perú))Daily19:00Same day✓
SFCColombiaFinancial Superintendence of ColombiaDaily22:00Same day
taiwan_customsTaiwanCustoms Administration, Ministry of Finance (Taiwan Customs Administration)MonthlyOn days 1, 11, 21 of each monthSame Month✓
uganda_raUgandaUganda Revenue AuthorityMonthly1st of monthSame Month
vietcomVietcombankJoint Stock Commercial Bank for Foreign Trade of VietnamDaily17:00Same day✓
iso?string

OPTIONAL - Comma separated list of to currencies ISO 4217 codes. This will limit the data returned to only those currencies you are interested in.

Default"*"
amount?number

OPTIONAL – This parameter can be used to specify the amount you want to convert, if an amount is not specified then 1 is assumed.

Default1
date?string

OPTIONAL – YYYY-MM-DD format - request latest rates on, or before given date. Rates are often not posted on weekends and holidays. For sources that provide rates multiple times a day, use YYYY-MM-DDTHH:MM format to request rates at, or before, a time.

inverse?boolean

OPTIONAL – If ‘true’, the endpoint will respond with the inverse of the exchange rates.

Defaultfalse
decimal_places?number

OPTIONAL – is parameter can be used to specify the number of decimal places included in the output. Example: if 1 USD to EUR = 0.874852, adding decimal_places=3 to the query will result in the endpoint returning EUR = 0.875

Default20
margin?number

OPTIONAL – This parameter can be used to add a margin (+/-) to the exchange rate. Example: adding margin=2.05 to the query will result in the endpoint returning the current exchange rates with a +2.05% margin.

Default0
fields?string

OPTIONAL - Comma separated list of fields. One or more of "mid", "bid" or "ask".

Default"mid"

Response Body

application/json

application/json

application/json

application/json

text/plain

curl -X GET "https://example.com/v1/alternative_source_rate?source=string"
{  "terms": "https://www.xe.com/legal",  "privacy": "https://www.xe.com/privacy",  "source": "HKAB",  "name": "Hong Kong Association of Banks",  "amount": 1,  "timestamp": "2026-09-23T16:00:00Z",  "rates": [    {      "fromCurrency": "AUD",      "toCurrency": "HKD",      "mid": 5.5168,      "bid": 5.4365,      "ask": 5.597    },    {      "fromCurrency": "BND",      "toCurrency": "HKD",      "mid": 6.1258,      "bid": 6.061,      "ask": 6.1905    }  ]}
Empty
{  "code": 40,  "message": "Missing required parameter: source",  "documentation_url": "https://developers.xe.com/docs/currency-data-api"}
{  "code": 1,  "message": "Bad credentials",  "documentation_url": "https://developers.xe.com/docs/currency-data-api"}
{  "code": 3,  "message": "Monthly rate limit exceeded.",  "documentation_url": "https://developers.xe.com/docs/currency-data-api"}
{  "code": 4,  "message": "Current interval rate limit exceeded.",  "documentation_url": "https://developers.xe.com/docs/currency-data-api"}
"An unexpected error occurred"

This endpoint will return basic information for a specific account. GET

Requires authentication over HTTPS with either an API key sent as a Bearer token or Basic authentication (Username and Password).

Convert from one base currency to one or multiple counter currencies. GET

**This feature is in beta.** Access and functionality may evolve. If you’d like to participate, please sign up for our free trial. This endpoint provides **indicative spot bid-ask pricing**, updated **every 10 seconds** and sourced from aggregated institutional liquidity. Data is **informational only** and may contain inaccuracies during the beta phase. ## Endpoint Example [https://xecdapi.xe.com/v1/bid_ask?from=GBP&to=EUR,USD](https://xecdapi.xe.com//v1/bid_ask?from=GBP&to=EUR,USD) ## Supported Currencies The Bid & Ask (Beta) endpoint supports the following currencies: **AUD, BRL, CAD, CHF, CNH, DKK, EUR, GBP, JPY, NOK, NZD, PLN, SEK, USD** Any pair can be requested in either direction (as **from** or **to**), with the following exceptions involving **CNH** (offshore Chinese yuan): - CNH is not available with **BRL**, **DKK**, or **PLN** in either direction. - CNH is supported only as the target currency for **NOK** and **SEK**: **from=NOK&to=CNH** and **from=SEK&to=CNH** are available, but **from=CNH&to=NOK** and **from=CNH&to=SEK** are not. The rates provided are indicative spot bid-ask prices derived from aggregated institutional liquidity sources and refreshed every 10 seconds. As this feature is in beta, behaviour and coverage may change, and occasional inaccuracies or inconsistencies may occur. These rates are intended for informational use only and should not be relied upon for financial reporting or decision-making.

Get help