GeckoTerminal — Pool OHLCV chart by Pool Address
Retrieve pool OHLCV chart by Pool Address with the GeckoTerminal API. Supply a network and a pool address. Sample fields include addresses and symbols. Use it for on-chain or crypto market research. The GET request schema also lists pool_address, timeframe. Use the response in blockchain monitoring or to cross-check data against an explorer for the same network.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
GeckoTerminal — Pool OHLCV chart by Pool Address
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
dataobjectattributesobjectohlcv_listnumber[][]
idstringtypestring
metaobjectbaseobjectaddressstringcoingecko_coin_idstringnamestringsymbolstring
quoteobjectaddressstringcoingecko_coin_idstringnamestringsymbolstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
data?: {
attributes?: {
ohlcv_list?: Array<Array<number>>;
};
id?: string;
type?: string;
};
meta?: {
base?: {
address?: string;
coingecko_coin_id?: string;
name?: string;
symbol?: string;
};
quote?: {
address?: string;
coingecko_coin_id?: string;
name?: string;
symbol?: string;
};
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
geckoterminalCurrent GeckoTerminal — Pool OHLCV chart by Pool Address · GET · View API reference | $0 / call | — | —successP50— |
- 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: 3. 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
curl \
'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'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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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"
}
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# GeckoTerminal — Pool OHLCV chart by Pool Address
Retrieve pool OHLCV chart by Pool Address with the GeckoTerminal API. Supply a network and a pool address. Sample fields include addresses and symbols. Use it for on-chain or crypto market research. The GET request schema also lists pool_address, timeframe. Use the response in blockchain monitoring or to cross-check data against an explorer for the same network.
## Available implementations
geckoterminal · GeckoTerminal — Pool OHLCV chart by Pool Address: https://openany.si/markets/apis/capabilities/geckoterminal-pool-ohlcv-chart-by-pool-address?offering=76b191e8-b6a7-497e-aef7-fd8920b4ecdd · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/geckoterminal-pool-ohlcv-chart-by-pool-address
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/geckoterminal/api/v2/networks/{network}/pools/{pool_address}/ohlcv/{timeframe}
Price: $0 / call
Provider: geckoterminal
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'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'
```
## API contract
```json
{
"resource_type": "api",
"name": "GeckoTerminal — Pool OHLCV chart by Pool Address",
"endpoint": "https://api.openany.si/v1/agent-apis/geckoterminal/api/v2/networks/{network}/pools/{pool_address}/ohlcv/{timeframe}",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "network ID<br>*refers to [/networks](/api/v2/networks)",
"location": "path",
"name": "network",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "pool contract address",
"location": "path",
"name": "pool_address",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "timeframe of the OHLCV chart",
"enum_values": [
"day",
"hour",
"minute"
],
"location": "path",
"name": "timeframe",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "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`",
"location": "query",
"name": "aggregate",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "return OHLCV data before this timestamp (integer seconds since epoch)",
"location": "query",
"name": "before_timestamp",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "number of OHLCV results to return, maximum 1000",
"location": "query",
"maximum": "1000",
"name": "limit",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "return OHLCV in USD or quote token",
"enum_values": [
"usd",
"token"
],
"location": "query",
"name": "currency",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "include empty intervals with no trade data",
"location": "query",
"name": "include_empty_intervals",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "return OHLCV for token<br>use this to invert the chart<br>Available values: 'base', 'quote', or token address",
"location": "query",
"name": "token",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": null,
"headers": {
"Accept": "application/json;version=20230203"
},
"path": {
"network": "eth",
"pool_address": "0x60594a405d53811d3bc4766596efd80fd545a270",
"timeframe": "hour"
},
"query": {
"aggregate": "4",
"currency": "usd",
"include_empty_intervals": false,
"limit": 100,
"token": "base"
}
},
"response_body": {
"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"
}
}
}
}
]
}
```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" } } }