get https://pro-api.coingecko.com/api/v3/onchain/networks//pools//ohlcv/
This endpoint allows you to get the OHLCV chart (Open, High, Low, Close, Volume) of a pool based on the provided pool address on a network
Tips
- You may use this endpoint to query the historical price and volume of a token
- You may select the timeframe with its respective aggregate to get the intended OHLCV data (Example:
minute?aggregate=15
for 15 minutes OHLCV)
Notes
- This endpoint uses epoch/unix timestamp seconds for its timestamp format. Example:
1708850449
- Paid plan subscribers (Analyst plan & above) can access data from September 2021 to the present, depending on when the pool started tracking on GeckoTerminal.
- If no earlier data is available, an empty response will be returned.
- Each API call can only retrieve data for a maximum range of 6 months. To fetch older data, use the
before_timestamp
parameter to query in multiple requests.- Pools with more than 2 tokens are not yet supported for this endpoint
- Cache/Update frequency: every 60 seconds
- Each OHLCV array (under "ohlcv_list") consists of 6 elements in the following order:
- Timestamp: The Unix epoch timestamp representing the start of the time interval.
- Open: The opening price of the asset at the beginning of the interval.
- High: The highest price reached during the interval.
- Low: The lowest price reached during the interval.
- Close: The price of the asset at the end of the interval.
- Volume: The total trading volume of the asset during the interval.