Currency Exchange

The Currency Exchange Object

Property

Type

Description

from

String

Origin currency code (ISO-4217)

to

String

Destination currency code (ISO-4217)

rate

Decimal

Ratio of conversion from from currency to to currency.

get
Get an Exchange Rate

https://api.dlocal.com/currency-exchanges?from={from}&to={to}
Get the exchange rate between two currencies.
Request
Response
Query Parameters
from
required
string
Origin currency code.
to
required
string
Destination currency code.
200: OK
Example Response
{
"from": "USD",
"to": "BRL",
"rate": 3.33
}

At the moment, only the only value for the from parameter is USD, and the toparameter can include any local currency.

Example request

curl -X GET \
-H 'X-Date: 2018-02-20T15:44:42.310Z' \
-H 'X-Login: sak223k2wdksdl2' \
-H 'X-Trans-Key: fm12O7G9' \
-H 'X-Version: 2.1' \
-H 'User-Agent: MerchantTest / 1.0 ' \
-H 'Authorization: V2-HMAC-SHA256, Signature: 1bd227f9d892a7f4581b998c21e353b1686a6bdad5940e7bb6aa596c96e0a6ec' \
https://api.dlocal.com/currency-exchanges?from=USD&to=BRL