You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CoinGecko's free Demo plan and paid Pro plan share the CG- key prefix
but require different hosts and auth headers. The code assumed any key
was a Pro key and always called pro-api.coingecko.com with
x-cg-pro-api-key, so a free Demo key failed with HTTP 400 (error 10011)
across all 4 crypto seeders and the server market RPC fetcher.
Add an explicit COINGECKO_DEMO_API_KEY env var that routes to
api.coingecko.com with x-cg-demo-api-key. Pro takes precedence when both
are set, so existing Pro deployments are unaffected; no key still falls
back to the public endpoint. Extracted the tier resolution into a shared
coingeckoEndpoint() helper (scripts) and a typed local helper (server).
0 commit comments