Skip to content

Deduplicate CoinGecko Ethereum metrics fetch#18822

Open
alerodriargui wants to merge 1 commit into
ethereum:devfrom
alerodriargui:fix-coingecko-eth-metrics-rate-limit
Open

Deduplicate CoinGecko Ethereum metrics fetch#18822
alerodriargui wants to merge 1 commit into
ethereum:devfrom
alerodriargui:fix-coingecko-eth-metrics-rate-limit

Conversation

@alerodriargui

Copy link
Copy Markdown
Contributor

Description

Combines the hourly Ethereum price and market cap requests into a single CoinGecko /simple/price call, reducing concurrent API usage and the likelihood of 429 rate-limit errors.
The combined response is stored under the existing price and market cap keys, so getters and consumers remain unchanged. The Demo API key is also moved from the query string to the official x-cg-demo-api-key header.
Adds tests covering the combined response mapping, optional 24-hour change, and invalid responses.

Related Issue

Closes #18790

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit fda7346
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6a58f5aef7eb500008c4f36e
😎 Deploy Preview https://deploy-preview-18822.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 59 (🟢 up 3 from production)
Accessibility: 95 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (no change from production)
PWA: 59 (🔴 down 1 from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[recovery] CoinGecko 429 on ETH price simple/price fetch (demo-tier rate limit, concurrent hourly fetchers)

1 participant