man-c / pycoingecko

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

Improve the methods for pagination #72

Open pyon-yx opened 2 years ago

pyon-yx commented 2 years ago

Hi Thank you for providing this package. I would like to suggest what I think about pagination while using this package. It's a little inconvenient to check whether there is a next page or not, because it only returns the response content. It would be better to return not only the content but also the header of the response. The response header contains the total number of results, which is very convenient for pagination. This is only my thought. What do you think? Regards.