Skip to main content

Get FX rate

POST/api/v1/bank/wallet/fx/rate/Bearer Token

Request headers​

HeaderValueRequired
AuthorizationBearer {A55_ACCESS_TOKEN}Yes
Content-Typeapplication/jsonYes

Request body​

FieldTypeRequiredDescription
from_currencystringYesSource currency ISO 4217 code
to_currencystringYesTarget currency ISO 4217 code

Supported currencies​

CodeCurrency
USDUS Dollar
BRLBrazilian Real
EUREuro
MXNMexican Peso
ARSArgentine Peso
COPColombian Peso
CLPChilean Peso
PENPeruvian Sol

56 conversion pairs are available across all combinations.


Response fields​

FieldTypeDescription
pricefloatExchange rate rounded to 2 decimal places. 1 unit of from_currency = price units of to_currency

HTTP status codes​

StatusDescription
200Rate returned successfully
400Invalid currency code or same from/to
401Invalid or expired Bearer token
403FX not enabled for this wallet
422Unsupported currency pair
429Rate limit exceeded
500Internal server error — retry with exponential backoff

Code examples​

curl -s -X POST https://sandbox.api.a55.tech/api/v1/bank/wallet/fx/rate/ \
-H "Authorization: Bearer $A55_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from_currency": "USD",
"to_currency": "BRL"
}'

Response example​

{
"price": 5.73
}

Error response example​

{
"status": "error",
"message": [
{
"code": "UNSUPPORTED_PAIR",
"source": "fx",
"description": "Currency pair GBP/BRL is not supported"
}
]
}