OHLCV for a LP address
Retrieve the OHLCV (Open, High, Low, Close, Volume) chart data for a specific liquidity pool, with flexible time range and bucket interval.
Endpoint
GET /api/v1/partner/pool/ohlcvRequest Parameters
pool_address
string
Yes
The address of the liquidity pool.
bucket
int
Yes
The interval (in minutes) for each OHLCV data point.
from
int
No
Start of the time range (Unix timestamp in seconds).
to
int
No
End of the time range (Unix timestamp in seconds). Defaults to now.
limit
int
No
Number of data points to return.
Note:
If
fromis omitted, the range is determined bylimitandto.If
tois omitted, it defaults to the current time.The
fromandtorange must be within maximum 500 data points. (e.g., ifbucketis 1 hour, the range can be up to 500 hours).bucketis required and determines the granularity of the chart.limitis optional and defaults to 500, maximum is 500 data points.The
bucketmust be one of the following: 1, 5, 15, 60 (1 hour), 240 (4 hours), 1440 (1 day), 10080 (1 week), or 43200 (1 month).
Headers
x-api-key
No
API key for authorization.
cURL Example
curl --location 'http://api.noodles.fi/api/v1/partner/pool/ohlcv?pool_address=0xe4455aac45acee48f8b69c671c245363faa7380b3dcbe3af0fbe00cc4b68e9eb&from=1748502901&to=1748515500&bucket=60' \
--header 'x-api-key: YOUR_API_KEY'Response
Fields
code
number
No
HTTP status code (200 for success).
message
string
No
Status message.
data
array
No
Array of OHLCV arrays. Each entry is: [timestamp, open, high, low, close, volume]
Note:
The response data will automatically fill in missing buckets with volume 0.
The
dataarray contains OHLCV data points for the specified pool and time range.
0
timestamp
Unix timestamp for the bucket period.
1
open
The opening price.
2
high
The highest price.
3
low
The lowest price.
4
close
The closing price.
5
volume
Trading volume.
Success Response
{
"code": 200,
"message": "OK",
"data": [
[
1748502000,
0.5640961796670526,
0.5595948162096896,
0.5586378762421685,
0.5592318582652738,
3204.2430800228926
],
[
1748505600,
0.5699857507176219,
0.5699857507176219,
0.5572834728839413,
0.5640961796670526,
25786.94030720097
],
[
1748509200,
0.5719349030778709,
0.5719349030778709,
0.5642972547605669,
0.5699857507176219,
25241.783807255088
],
[
1748512800,
0.5699857507177203,
0.5719504054806599,
0.5699857507177203,
0.5719349030778709,
5910.344406629964
]
]
}See also: Environment Setup
Last updated