GET/v1/pools/{address}/price-history
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/aerodrome/v1/pools/{address}/price-historyCache cached 10s, never served stale past that windowCost free · weight 0 · heavy rate classSource billing freeHistorical spot-price snapshots across on-chain archive blocks for a Slipstream CL, vAMM, or sAMM pool.
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/aerodrome/v1/pools/0x4A7af46bC8aBc00048c6c7920a1488DAF568366c/price-history?chain=base&window=day&points=8&pool_type=auto"Parameters
| name | in | type | description | |
|---|---|---|---|---|
address | path | str | required | Pool contract address (CL, vAMM, or sAMM). example: 0x4A7af46bC8aBc00048c6c7920a1488DAF568366c |
chain | query | str | optional | Target chain: base (8453, default), optimism (10), arbitrum (42161), or ethereum (1). default: baseexample: base |
window | query | str | optional | Lookback window: day, week, month, trimonth, or duration in seconds. default: dayexample: day |
points | query | int | optional | Number of historical snapshots (2-48). default: 24example: 8 |
pool_type | query | str | optional | Pool mode override: auto, cl, or basic. default: autoexample: auto |
Response
type: object
data key: points
count key: count
pagination: none
sample: {
"chain": "str",
"chain_id": "int",
"pool": "str",
"pool_mode": "str",
"window": "str",
"window_seconds": "int",
"series_type": "str",
"count": "int",
"points": [
{
"timestamp": "int",
"block_number": "int",
"tick": "int",
"sqrt_price_x96": "str",
"raw_price_token1_per_token0": "float"
}
]
}