GET/v1/pools/{address}/price-history

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

Historical 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

nameintypedescription
addresspathstrrequiredPool contract address (CL, vAMM, or sAMM).
example: 0x4A7af46bC8aBc00048c6c7920a1488DAF568366c
chainquerystroptionalTarget chain: base (8453, default), optimism (10), arbitrum (42161), or ethereum (1).
default: base
example: base
windowquerystroptionalLookback window: day, week, month, trimonth, or duration in seconds.
default: day
example: day
pointsqueryintoptionalNumber of historical snapshots (2-48).
default: 24
example: 8
pool_typequerystroptionalPool mode override: auto, cl, or basic.
default: auto
example: 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"
    }
  ]
}