From 1477735a763fed535923c1a7e8845d9716b6854d Mon Sep 17 00:00:00 2001 From: Bobo Date: Fri, 18 Aug 2023 10:09:36 +0200 Subject: [PATCH] Changed historical prices period to daily (#92) --- src/services/StatsIndexerService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/StatsIndexerService.ts b/src/services/StatsIndexerService.ts index ad6c4af..9735f22 100644 --- a/src/services/StatsIndexerService.ts +++ b/src/services/StatsIndexerService.ts @@ -140,7 +140,7 @@ export class StatsIndexerService extends ServiceBase implements IStatsIndexerSer const numberOfDays = this.getPeriodDurationInDays(period); try { - const interval = period === '1 year' ? 'daily' : 'hourly'; + const interval = 'daily'; const result = await axios.get( `https://api.coingecko.com/api/v3/coins/${network}/market_chart?vs_currency=usd&days=${numberOfDays}&interval=${interval}`, );