Get OHLCV data for a pool pair.
Retrieves Open-High-Low-Close-Volume (OHLCV) data for a specific pool, potentially over a specified time range.
- start is required to set the beginning of the data window.
- end is optional; if omitted, data is returned for the “start” date only.
- limit can control how many data points to retrieve (e.g., maximum of 100).
- interval defines the granularity (e.g., 1h, 4h, 1d).
- inverted_price indicates whether to invert the main price ratio.
Path Parameters
Unique pool address or identifier. Such as 0xc7bbec68d12a0d1830360f8ec58fa599ba1b0e9b for WETH / USDT on ethereum.
Query Parameters
Start time for the OHLCV data. Accepted formats:
- Unix timestamp
- RFC3339 timestamp (e.g., "2023-10-27T08:07:20Z")
- Date (e.g., "2023-10-27", interpreted as 00:00:00 UTC)
"1741507640"
Start time for the OHLCV data. Accepted formats:
- Unix timestamp
- RFC3339 timestamp (e.g., "2023-10-27T10:00:00Z")
- Date (e.g., "2023-10-27", interpreted as 00:00:00 UTC)
"1741508640"
Maximum number of OHLCV records to return.
1 <= x <= 366The time interval for each OHLCV record (candle).
1m, 5m, 10m, 15m, 30m, 1h, 6h, 12h, 24h Whether to invert the price ratio in OHLCV calculations (e.g., quote token vs. base token).
Response
A list of OHLCV records successfully retrieved.
The opening timestamp of the OHLCV period.
"2023-10-27T10:00:00Z"
The closing timestamp of the OHLCV period.
"2023-10-27T11:00:00Z"
The opening price for the period.
1500.5
The highest price reached during the period.
1525.75
The lowest price reached during the period.
1495.25
The closing price for the period.
1510
The total volume traded during the period.
1234567890123