Discovery and markets API

How much value do price oracles secure over time?

Daily DeFi value secured by price oracles in USD, all oracles or one (Chainlink, Pyth, RedStone and more), overall or on one chain, over 7 to 365 days or all history.

GET/api/external/discovery/oracle-history

What it returns

The total value locked in DeFi protocols that rely on a price oracle, per UTC day dated 00:00 UTC, oldest first, over the trailing window in days: every oracle, or the one in oracle, across every chain or on the one in chain. A protocol is counted under one oracle only, so the oracles add up to the total; protocols pricing themselves and smaller oracles count only in the total. The window counts back from the newest point's own day, not from today, and the newest point can be today's partial day. A day missing from the record is left out rather than filled in. For an oracle on a chain it secures nothing on, points is empty.

Chains

  • Solana SOL
  • Ethereum ETH
  • BNB Chain BNB
  • Base BASE
  • Robinhood Chain RHC
  • Arc ARC

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/discovery/oracle-history"
Parameters
ParameterDescription
oracle

query · string · optional

Only the value this oracle network secures. Omit for every oracle.chainlinkchronicleredstonepythchaosumastorksupraeoracleswitchboarddiaband
chain

query · string · optional

Only the value secured on this chain. Omit for every chain. STABLE is not served.
days

query · string · optional

How many trailing days to return, or all for the whole series. Defaults to 90. days ≤ 365 keeps the answer under 32 KB.73090180365all

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of How much value do price oracles secure over time?
FieldTypeDescription
oraclestring | nullThe oracle asked about, or null for every oracle.
chainstring | nullThe chain asked about, or null for every chain.
daysstringThe window returned.
pointsobject[]Oldest first, one per day.
points[].timestampintegerUnix seconds, 00:00 UTC of the day.
points[].usdnumberThe value secured that day, in USD.

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key