Property | Type | Description |
| String | Origin currency code (ISO-4217) |
| String | Destination currency code (ISO-4217) |
| Decimal | Ratio of conversion from |
{"from": "USD","to": "BRL","rate": 3.33}
At the moment, the only acceptable value for the from
parameter is USD
, whereas the to
parameter can include any local currency.
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