man-c / pycoingecko

Python wrapper for the CoinGecko API
MIT License
1.04k stars 268 forks source link

Adding API_KEY (x_cg_pro_api_key) support for https://pro-api.coingecko.com/api/v3 calls (pro version) #53

Closed 0xtakamaka closed 2 years ago

0xtakamaka commented 2 years ago

Add "x_cg_pro_api_key" to every call as this key is needed in coingecko pro version

vilnik commented 2 years ago

Don't we also need to update the url to https://pro-api.coingecko.com/api/v3/?

slgero commented 2 years ago

@vilnik Yes, if you use the pro version, the base URL should be https://pro-api.coingecko.com/api/v3/

slgero commented 2 years ago

Do you have plans to merge this functionality in the library?

darklow commented 2 years ago

Tested and works great. The only note – I would add URL override to pro-api host if key is provided, but not a big deal, you can override it by yourself, but would make sense to have it as a part of the MR.

adamxyzxyz commented 2 years ago

hey guys has this been pulled into main?

man-c commented 2 years ago

Hi! This PR is going to be tested and released to master branch soon

man-c commented 2 years ago

Thanks for contributing!

adamxyzxyz commented 2 years ago

is this live on pypi?

man-c commented 2 years ago

Hello! Just released a new version pycoingecko v2.3.0 (also on pypi) including PRO API version support. See README & CHANGELOG for more info.