GET/v4/{chainId}/prices/{address}/ohlcv
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/pendle/v4/{chainId}/prices/{address}/ohlcvCache cached 15s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeHistorical OHLCV price candles for a Pendle PT, YT, or LP token.
Try this endpoint
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/pendle/v4/1/prices/0xb253eff1104802b97ac7e3ac9fdd73aece295a2c/ohlcv?time_frame=day"Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | path | str | required | Numeric chain ID or canonical name (e.g. 1/ethereum, 42161/arbitrum, 8453/base, 56/bsc, 999/hyperevm). example: 1 |
address | path | str | required | PT, YT, or LP token address. example: 0xb253eff1104802b97ac7e3ac9fdd73aece295a2c |
time_frame | query | strhour | day | week | optional | Aggregation interval (hour, day, or week). default: dayexample: day |
timestamp_start | query | str | optional | Optional ISO-8601 start timestamp. |
timestamp_end | query | str | optional | Optional ISO-8601 end timestamp. |
Response
type: object
data key: results
count key: total
pagination: none
sample: {
"currency": "USD",
"timeFrame": "day",
"total": 30,
"results": []
}