Quick Access
Coin Methods
Bitcoin
Miscellaneous
Methods
Other
getCurrentFiatRates

Get current fiat rates

Retrieves current selected exchange rates for selected coin.

const result = await TrezorConnect.blockchainGetCurrentFiatRates(params);

Params

currencies

Array<String>

Required

Currency symbols (eur, usd, czk, ...)

coin

String

Required

Coin symbol (btc, eth, bch, ...)

Example

Return current EUR, USD, BTC exchange rates for ETH:

const result = await TrezorConnect.blockchainGetCurrentFiatRates({
    currencies: ['eur', 'czk', 'btc'],
    coin: 'eth',
});

Result

GetCurrentFiatRates type

{
    success: true,
    payload: {
        rates: {btc: 0.07461017, eur: 1768.36, usd: 1802.17},
        ts: 1659962048
    }
}