Skip to content

Commit

Permalink
Only retrieve last 365 days
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Mar 28, 2024
1 parent b07c1a7 commit 83a8516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/src/db/priceHistoryProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const syncPriceHistory = async () => {
return;
}

const endpointUrl = `https://api.coingecko.com/api/v3/coins/${activeChain.coinGeckoId}/market_chart?vs_currency=usd&days=max`;
const endpointUrl = `https://api.coingecko.com/api/v3/coins/${activeChain.coinGeckoId}/market_chart?vs_currency=usd&days=365`;

console.log("Fetching latest market data from " + endpointUrl);

Expand Down

0 comments on commit 83a8516

Please sign in to comment.