Skip to content

Commit

Permalink
Changed historical prices period to daily (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 authored Aug 18, 2023
1 parent 1e19005 commit 1477735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/StatsIndexerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
Expand Down

0 comments on commit 1477735

Please sign in to comment.