For historical data, granularity is automatically determined and cannot be adjusted with the following rules:

  • 1 day from query time = 5 minute interval data
  • 1 - 90 days from query time = hourly data
  • above 90 days from query time = daily data (00:00 UTC)

Please refer to CoinGecko's API documentations for a full list of API requests.