trezor-suite
trezor-suite copied to clipboard
Fetch data based on hardcoded range and draw as a table
There are a few ranges in the app for which we need to fetch data (fiat rates).
- 1 H
- 1 D
- 1 W
- 1 M
- 1 Y
- ALL
dev notes:
- Currently used in suite to obtain payload with account transactions in time...
const response = await TrezorConnect.blockchainGetAccountBalanceHistory({
coin: account.symbol,
descriptor: account.descriptor,
groupBy: 3600 * 24, // day
});
grouped by day because the current graph has the smallest range 1 day?
Then obtained payload is passed to getFiatRatesForTimestamps in @suite-common/fiat-services
-
- Maybe we will need to reuse graphUtils from suite to custom common package