Skip to main content

getFiatRatesByDay

Description:

Get fiat data by day

Arguments:

NameTypeRequiredDescription
dateTostringYesStart time
dateFromstringYesEnd time

Returns:

type Output = Array<{
timestamp: string
usdToEurRate: string
usdToGbpRate: string
assetsUsdRate: string
}>

Example:

await sdk.utils.getFiatRatesByDay({ dateTo, dateFrom })