man-c / pycoingecko

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

How to get top 100 coins by market cap on specific day #55

Open paymog opened 2 years ago

paymog commented 2 years ago

Is there a canonical way to get the top 100 coins by market cap on a given day in the past?

The /coins/markets endpoint is close to being able to answer that question but unfortunately it doesn't accept a date parameter.

craigmediaservices commented 2 years ago

Not possible. Historic endpoint is get_coin_market_chart_range_by_id() for specific coins. You could pull all coins.

However api.py isn't passing the argument for including marketcap and would need to be updated.