Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calls with 'Demo account API Key' end with 400 Bad request #53

Open
dledvinka opened this issue Dec 30, 2023 · 2 comments
Open

Calls with 'Demo account API Key' end with 400 Bad request #53

dledvinka opened this issue Dec 30, 2023 · 2 comments

Comments

@dledvinka
Copy link

dledvinka commented Dec 30, 2023

Looking into the source code I see that when an API key is provided, it automatically uses the PRO endpoint. That is always not correct. The PRO endpoint is for paid subscription tiers only. There is also a demo account API key option (which is limited but free), which still needs to use the normal endpoint. Would you mind if I fixed that? :)

@dledvinka dledvinka changed the title Calls with 'Demo account API Keyt Calls with 'Demo account API Key' end with 400 Bad request Dec 30, 2023
@sachiew
Copy link

sachiew commented Jan 1, 2024

gentle reminder on the Root URL:

  • Pro API key: pro-api.coingecko.com (x_cg_pro_api_key)
  • Demo API key: api.coingecko.com (x_cg_demo_api_key)

Ref:

@chrisfromneptune
Copy link

Perhaps you can fork it with the changes?

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

No branches or pull requests

3 participants