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
GeckoTerminal Pool OHLCV API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
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
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
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
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
geckoterminalCurrent GeckoTerminal — Pool OHLCV chart by Pool Address · GET · View API reference | $0 / call | 1 | 100.00%successP50545ms |
- 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.
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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
network | URL path parameterspath | string | Yes | network ID<br>*refers to [/networks](/api/v2/networks) |
pool_address | URL path parameterspath | string | Yes | pool contract address |
timeframe | URL path parameterspath | string | Yes | timeframe of the OHLCV chart enum: "day", "hour", "minute" |
aggregate | URL query parametersquery | string | No | 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 | URL query parametersquery | string | No | return OHLCV data before this timestamp (integer seconds since epoch) |
limit | URL query parametersquery | integer | No | number of OHLCV results to return, maximum 1000 maximum: 1000 |
currency | URL query parametersquery | string | No | return OHLCV in USD or quote token enum: "usd", "token" |
include_empty_intervals | URL query parametersquery | boolean | No | include empty intervals with no trade data |
token | URL query parametersquery | string | No | 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
dataobjectattributesobjectohlcv_listnumber[][]
idstringtypestring
metaobjectbaseobjectaddressstringcoingecko_coin_idstringnamestringsymbolstring
quoteobjectaddressstringcoingecko_coin_idstringnamestringsymbolstring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ 'https://api.openany.si/v1/agent-apis/geckoterminal/api/v2/networks/eth/pools/0x60594a405d53811d3bc4766596efd80fd545a270/ohlcv/hour?aggregate=4¤cy=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'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" } } }