GET/v1/classic/prices

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/aerodrome/v1/classic/pricesCache cached 10s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

On-chain spot USD prices quoted against USDC via the Aerodrome/Velodrome OffchainOracle contract.

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/classic/prices?chain=base&tokens=0x4200000000000000000000000000000000000006%2C0x940181a94A35A4569E4529A3CDfB74e38FD98631%2C0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf&threshold=10"

Parameters

nameintypedescription
chainquerystroptionalTarget classic chain: base (Aerodrome) or optimism (Velodrome).
default: base
example: base
tokensquerystroptionalComma-separated token addresses (max 25); defaults to WETH and AERO/VELO.
example: 0x4200000000000000000000000000000000000006,0x940181a94A35A4569E4529A3CDfB74e38FD98631,0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
thresholdqueryintoptionalOracle liquidity threshold filter (0-100).
default: 10
example: 10

Response

type: object
data key: prices
count key: count
pagination: none
sample: {
  "chain": "str",
  "chain_id": "int",
  "oracle": "str",
  "quote_token": "str",
  "count": "int",
  "prices": [
    {
      "token": "str",
      "decimals": "int",
      "raw_rate": "str",
      "price_usd": "float"
    }
  ]
}