codenix-sv / coingecko-api

CoinGecko PHP API client for coingecko.com (V3)
MIT License
132 stars 58 forks source link

Add new API parameter "interval" for coin market-charts #12

Open lufrey opened 3 years ago

lufrey commented 3 years ago

I believe this is quite new, because the documentation is not fully complete yet, but you can add a query parameter "interval" to the endpoint /coins/{id}/market_chart. With that you can set the granularity of the historic data. You can find it here: https://www.coingecko.com/en/api/documentation The change required to support this feature is minimal. It would be great if it was supported. I will submit a Pull Request to update the repository.