Skip to main content

How to get exchange rates

Overview​

Use Rate API to get exchange rates for cryptocurrency and fiat calculations.

Use these methods when you need to estimate conversion amounts, show fiat equivalent values, or validate pricing before creating payment, payout, invoice, or exchange flows.

Rate methods​

MethodUse case
[POST] rateGet exchange rates between cryptocurrency pairs or supported currency pairs.
[POST] rate/fiatGet rates between source currencies and fiat target currencies.

Common request fields​

Rate API methods use the standard request wrapper.

FieldTypeRequiredDescription
timestampnumberYesCurrent Unix UTC timestamp in milliseconds. The value must not be less than 3 minutes in the past or greater than 3 minutes in the future.
payloadobjectYesObject with rate request parameters.

Get exchange rates​

Use [POST] rate.

Payload fieldTypeRequiredDescription
fromCurrenciesarrayNoSource currencies.
toCurrenciesarrayNoTarget currencies.

Request example​

{
"timestamp": 1761650432438,
"payload": {
"fromCurrencies": [
"BTC",
"ETH"
],
"toCurrencies": [
"USDT_TRX"
]
}
}

Response fields​

FieldTypeDescription
currencyRatesarrayExchange rates for requested currency pairs.

currencyRates fields​

FieldTypeDescription
fromCurrencystringSource currency.
toCurrencystringTarget currency.
ratesnumberExchange rate.
ratesDatestringDate and time when the rate was calculated.

Get fiat exchange rates​

Use [POST] rate/fiat.

Payload fieldTypeRequiredDescription
fromarrayYesSource currencies.
toarrayYesTarget fiat currencies.

Request example​

{
"timestamp": 1761650432438,
"payload": {
"from": [
"USDT_TRX",
"BTC"
],
"to": [
"USD",
"EUR"
]
}
}

Response fields​

FieldTypeDescription
ratesMapobjectNested object with rates grouped by source and target currency.
CaseRecommendation
Showing estimated amountsTreat rates as informational estimates and refresh them before important user actions.
Displaying fiat equivalentsUse rate/fiat when target currencies are fiat currencies.
Validating currency valuesUse Currency API first to check supported currencies.
DocumentLink
Available currenciesHow to get available currencies
Rate API referenceRate API