GET/v1/classic/prices
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 freeOn-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
| name | in | type | description | |
|---|---|---|---|---|
chain | query | str | optional | Target classic chain: base (Aerodrome) or optimism (Velodrome). default: baseexample: base |
tokens | query | str | optional | Comma-separated token addresses (max 25); defaults to WETH and AERO/VELO. example: 0x4200000000000000000000000000000000000006,0x940181a94A35A4569E4529A3CDfB74e38FD98631,0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf |
threshold | query | int | optional | Oracle liquidity threshold filter (0-100). default: 10example: 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"
}
]
}