GET/v4/{chainId}/prices/{address}/ohlcv

Claude ↗ChatGPT ↗
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 free

Historical 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

nameintypedescription
chainIdpathstrrequiredNumeric chain ID or canonical name (e.g. 1/ethereum, 42161/arbitrum, 8453/base, 56/bsc, 999/hyperevm).
example: 1
addresspathstrrequiredPT, YT, or LP token address.
example: 0xb253eff1104802b97ac7e3ac9fdd73aece295a2c
time_framequerystr
hour | day | week
optionalAggregation interval (hour, day, or week).
default: day
example: day
timestamp_startquerystroptionalOptional ISO-8601 start timestamp.
timestamp_endquerystroptionalOptional ISO-8601 end timestamp.

Response

type: object
data key: results
count key: total
pagination: none
sample: {
  "currency": "USD",
  "timeFrame": "day",
  "total": 30,
  "results": []
}