man-c / pycoingecko

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

ValueError: {'error': 'invalid date'} #78

Open miaga-engineering opened 1 year ago

miaga-engineering commented 1 year ago

I have passed a string date as in '2022-01-01' and a date time object, none of them works.

willb0 commented 1 year ago

should be a unix timestamp in seconds. see https://www.coingecko.com/en/api/documentation