Currency exchange

Get an exchange rate

Changed on

Get the exchange rate between two currencies.

get/currency-exchanges

Request

  • Base URL
    https://api.dlocal.com
  • URL
    https://api.dlocal.com/currency-exchanges
  • Auth
    API key in header X-Date and API key in header X-Login and API key in header X-Trans-Key and API key in header Content-Type and API key in header X-Version and API key in header User-Agent and API key in header Authorization

Query parameters

fromstring required

Origin currency code. At the moment, the only acceptable value for the from parameter is USD, whereas the to parameter can include any local currency.

tostring required

Destination currency code.

Response

200

fromstring
tostring
ratenumber

Example response

{
  "from": "USD",
  "to": "BRL",
  "rate": 3.33
}

Changes