nimiq / nimiq-utils

Simple helper libraries for Nimiq frontends
Apache License 2.0
6 stars 14 forks source link

FiatApi: always avoid fetching minutely data when disableMinutelyData is set #39

Closed danimoh closed 7 months ago

danimoh commented 4 years ago

Currently, disableMinutlyData is rather a hint that comes into play to avoid an additional request for minutely data for the last day when the time range extends over a day. Additionally, it would be good to disable minutely data if specifically requested so via the flag (for example to reduce the transmitted data) even if all time stamps are within the last day. To achieve this, we can enforce fetching a longer time range.

danimoh commented 7 months ago

Not that relevant anymore, as this only applies for CoinGecko, and CryptoCompare is the default provider now.