man-c / pycoingecko

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

How to get crypto pair prices (e.g. BTC/ETH)? #56

Closed lsverso closed 2 years ago

lsverso commented 2 years ago

If I extract the price of BTC, for example, I can only specify fiat currencies as quote currencies: BTC/[fiat].

Is there an easy way to extract BTC/ETH, ETH/AVAX or any other crypto/crypto pair?

0xtakamaka commented 2 years ago

Get BTC/USD, ETH/USD, AVAX/USD prices from coingecko, then recalculate it on your own.

Makes sense?

lsverso commented 2 years ago

Yep, did it and it worked. Thanks!