POST /dex/prices/lookup

Auth X-Hub-Key from API_HUB_KEYExecute POST /run/arbitron/dex/prices/lookupCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing free

Read latest WebSocket prices for up to 100 token contracts

Live Redis-backed upstream reads confirmed on CA on 2026-11-09 with 100 distinct references. fresh/stale is evaluated at servedAtMs; receivedAtMs is immutable collector receipt time. This is a token price, not an executable swap quote or per-pool price. No catalogue-price fallback. HTTP 400 invalid input, 413 body too large, 503 unavailable snapshot.

Parameters

nameintypedescription
contractsbodylist[dict]required1..100 network/address objects. Network aliases and chain IDs are accepted. Order and duplicates are retained; non-EVM address case matters.
example: [{"network":"base","address":"0x4200000000000000000000000000000000000006"},{"network":"solana","address":"So11111111111111111111111111111111111111112"}]
maxAgeMsbodyintoptionalMaximum collector receipt age for a fresh row. Older rows remain explicitly stale; missing rows have null price and time.
default: 1000
example: 5000

Response

type: object
data key: rows
count key: total
pagination: none
sample: {
  "rows": "array of network/address/priceUsd/receivedAtMs/ageMs/status; optional sourceUpdatedAt and streamId",
  "total": "int",
  "fresh": "int",
  "stale": "int",
  "missing": "int",
  "source": "okx_ws",
  "freshnessBasis": "receivedAtMs",
  "servedAtMs": "int",
  "upstreamServedAtMs": "int",
  "maxAgeMs": "int"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sX POST "https://openapihub.dev/run/arbitron/dex/prices/lookup" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"contracts": [{"network": "base", "address": "0x4200000000000000000000000000000000000006"}, {"network": "solana", "address": "So11111111111111111111111111111111111111112"}], "maxAgeMs": 5000}'