OpenAny
Get API keyAPI Key
APICrypto & DeFiFinance

geckoterminal logo
GeckoTerminal Pool OHLCV API

Get GeckoTerminal pool OHLCV candles via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Geckoterminal, pass parameters such as aggregate, currency, include_empty_intervals, and retrieve structured data including ohlcv list, base token contract address, base token symbol, quote token contract address, and quote token symbol for historical chart, and period comparison.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
1Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

GeckoTerminal Pool OHLCV API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
GeckoTerminal Pool OHLCV API

GeckoTerminal Pool OHLCV API

Provide network, pool_address and timeframe in the path. data.attributes.ohlcv_list contains candle arrays in timestamp, open, high, low, close and volume order. Optional aggregate, before_timestamp, limit, currency, token and include_empty_intervals control the requested chart data.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required path: network, pool_address, timeframe; Optional query: aggregate, before_timestamp, limit, currency, include_empty_intervals, token.
Selected implementation geckoterminal · GeckoTerminal — Pool OHLCV chart by Pool Address
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Historical chart: Render candle arrays with the requested interval and currency.
  • Period comparison: Compare pool price and volume series using consistent token and aggregation settings.

Returned Data

Field Meaning
data.attributes.ohlcv_list Candle arrays ordered as timestamp, open, high, low, close and volume
meta.base.address Base token contract address
meta.base.symbol Base token symbol
meta.quote.address Quote token contract address
meta.quote.symbol Quote token symbol

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/geckoterminal/api/v2/networks/eth/pools/0x60594a405d53811d3bc4766596efd80fd545a270/ohlcv/hour \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json;version=20230203' \
  --data-urlencode aggregate=4 \
  --data-urlencode currency=usd \
  --data-urlencode include_empty_intervals=false \
  --data-urlencode limit=100 \
  --data-urlencode token=base

Request and Response Examples

The response example is a documentation reference and can describe a different token, network or DEX from the request template. Match returned resource identities to your request; reference prices and timestamps are not current market values.

Published GeckoTerminal Pool OHLCV API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
network ID<br>*refers to [/networks](/api/v2/networks)
pool contract address
timeframe of the OHLCV chart
Optional parameters (6)
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`
return OHLCV data before this timestamp (integer seconds since epoch)
number of OHLCV results to return, maximum 1000
return OHLCV in USD or quote token
include empty intervals with no trade data
return OHLCV for token<br>use this to invert the chart<br>Available values: 'base', 'quote', or token address

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
GeckoTerminal — Pool OHLCV chart by Pool Address · GET · View API reference$0 / call1
100.00%successP50545ms
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · geckoterminalUSD / call
Unit price
$0

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/geckoterminal/api/v2/networks/{network}/pools/{pool_address}/ohlcv/{timeframe}
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
networkURL path parameterspathstringYes

network ID<br>*refers to [/networks](/api/v2/networks)

pool_addressURL path parameterspathstringYes

pool contract address

timeframeURL path parameterspathstringYes

timeframe of the OHLCV chart

enum: "day", "hour", "minute"

aggregateURL query parametersquerystringNo

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_timestampURL query parametersquerystringNo

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

limitURL query parametersqueryintegerNo

number of OHLCV results to return, maximum 1000

maximum: 1000

currencyURL query parametersquerystringNo

return OHLCV in USD or quote token

enum: "usd", "token"

include_empty_intervalsURL query parametersquerybooleanNo

include empty intervals with no trade data

tokenURL query parametersquerystringNo

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

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • dataobject
    • attributesobject
      • ohlcv_listnumber[][]
    • idstring
    • typestring
  • metaobject
    • baseobject
      • addressstring
      • coingecko_coin_idstring
      • namestring
      • symbolstring
    • quoteobject
      • addressstring
      • coingecko_coin_idstring
      • namestring
      • symbolstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 9

    Review these request fields before running. Keep the published provider and request method unchanged.

    network
    network ID<br>*refers to [/networks](/api/v2/networks)
    pool_address
    pool contract address
    timeframe
    timeframe of the OHLCV chart
    aggregate
    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_timestamp
    return OHLCV data before this timestamp (integer seconds since epoch)
    limit
    number of OHLCV results to return, maximum 1000
    currency
    return OHLCV in USD or quote token
    include_empty_intervals
    include empty intervals with no trade data
    token
    return OHLCV for token<br>use this to invert the chart<br>Available values: 'base', 'quote', or token address
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/geckoterminal/api/v2/networks/eth/pools/0x60594a405d53811d3bc4766596efd80fd545a270/ohlcv/hour?aggregate=4&currency=usd&include_empty_intervals=false&limit=100&token=base' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json;version=20230203'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "data": {
        "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
            ]
          ]
        },
        "id": "bc786a99-7205-4c80-aaa1-b9634d97c926",
        "type": "ohlcv_request_response"
      },
      "meta": {
        "base": {
          "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "coingecko_coin_id": "weth",
          "name": "Wrapped Ether",
          "symbol": "WETH"
        },
        "quote": {
          "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
          "coingecko_coin_id": "tether",
          "name": "Tether USD",
          "symbol": "USDT"
        }
      }
    }

Common questions

Which timeframe and aggregate combinations are accepted?

timeframe accepts day, hour or minute. aggregate supports 1 for day; 1, 4 or 12 for hour; and 1, 5 or 15 for minute. Send aggregate as a string.

How can I request candles before a specific time?

Set before_timestamp to integer seconds since the Unix epoch, represented by this input as a string. limit supports up to 1000 candles.

Can I invert the chart or change the currency?

token accepts base, quote or a token address to select the token side; currency accepts usd or token. Preserve those settings when comparing candles.

What does include_empty_intervals control?

It selects whether empty trading intervals are included. Do not treat the number of returned candles as a count of individual trades.

Which API key should I use for this request?

Send your OpenAny API key in the Authorization header as Bearer authentication when calling the documented OpenAny route.

Where can I check the current call price?

Review the pricing area for the selected API implementation before calling. Follow its billing unit and terms; additional requests use their own selected implementation.

Use GeckoTerminal Pool OHLCV API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.