OHLCV

Pool OHLCV chart by Pool Address

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

get/networks/{network}/pools/{pool_address}/ohlcv/{timeframe}

Request

  • Base URL: https://api.geckoterminal.com/api/v2
  • URL: https://api.geckoterminal.com/api/v2/networks/{network}/pools/{pool_address}/ohlcv/{timeframe}
  • Auth: none declared

Path parameters

networkstring required
Example:eth

network ID<br>*refers to /networks

pool_addressstring required
Example:0x60594a405d53811d3bc4766596efd80fd545a270

pool contract address

timeframe'day' | 'hour' | 'minute' required

timeframe of the OHLCV chart

Query parameters

aggregatestring

time period to aggregate for each OHLCV<br><br><b>Available values (day):</b> 1<br><br><b>Available values (hour):</b> 1, 4, 12<br><br><b>Available values (minute):</b> 1, 5, 15

before_timestampstring
Example:1679414400

return OHLCV data before this timestamp (integer seconds since epoch)

limitinteger

number of OHLCV results to return, maximum 1000

currency'usd' | 'token'

return OHLCV in USD or quote token

include_empty_intervalsboolean

include empty intervals with no trade data

tokenstring

return OHLCV for token<br>use this to invert the chart<br>Available values: 'base', 'quote', or token address

Response

Get OHLCV data of a pool

Example response

{
  "data": {
    "id": "bc786a99-7205-4c80-aaa1-b9634d97c926",
    "type": "ohlcv_request_response",
    "attributes": {
      "ohlcv_list": [
        [
          1712534400,
          3454.61590249189,
          3660.85954963415,
          3417.91885296256,
          3660.85954963415,
          306823.277031161
        ],
        [
          1712448000,
          3362.60273217873,
          3455.28884490954,
          3352.95305060685,
          3454.61590249189,
          242144.864784184
        ],
        [
          1712361600,
          3323.05578706056,
          3391.19811016133,
          3317.73497182435,
          3362.60273217873,
          273323.661682931
        ]
      ]
    }
  },
  "meta": {
    "base": {
      "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "name": "Wrapped Ether",
      "symbol": "WETH",
      "coingecko_coin_id": "weth"
    },
    "quote": {
      "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
      "name": "Tether USD",
      "symbol": "USDT",
      "coingecko_coin_id": "tether"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.