THE DEVELOPER DESK API v1
Browse documentation
API endpoints

Exchange rates

Get available exchange rates against a base currency through the BankFXApi latest endpoint. See request parameters, response fields and JSON examples.

GET/v1/{BASE_CURRENCY}/latest

The Exchange Rates API provides aggregated and cross-calculated exchange rates combining data from all supported central banks and trusted reference sources, offering comprehensive global coverage.

Making an API Request

To fetch the latest blended rates for a specific base currency, send a GET request to the following endpoint:

https://api.bankfxapi.com/v1/{BASE_CURRENCY}/latest

Replace {BASE_CURRENCY} with the 3-letter currency code (e.g., USD, EUR, GBP) you want to use as the base for the exchange rates.

Query Parameters

Parameter Required Description
amount No Numeric amount to convert against every returned currency. If omitted, the API returns rates only.

Example

To obtain the latest blended exchange rates with USD as the base currency:

https://api.bankfxapi.com/v1/USD/latest

Example Response:

{
    "code": 200,
    "message": "success",
    "rates": {
        "AED": 3.6725,
        "AFN": 71.5,
        "ALL": 92.85,
        "AMD": 388.05,
        "ANG": 1.79,
        "...": "..."
    }
}

To convert 100 USD against all available target currencies:

https://api.bankfxapi.com/v1/USD/latest?amount=100

Example Response:

{
    "code": 200,
    "message": "success",
    "base": "USD",
    "amount": 100,
    "rates": {
        "AED": {
            "rate": 3.6725,
            "converted": 367.25
        },
        "EUR": {
            "rate": 0.859107,
            "converted": 85.9107
        }
    }
}

Note:

  • The API returns rates for all standard global currencies relative to your requested base currency.
  • Rates are continuously updated and blended to ensure accuracy and freshness based on our network of trusted central bank sources.

Authentication is required for all API requests. See the authentication guide for details.