DeFi protocols API

How much value is locked in this protocol's forks, over time?

The combined value locked in every code fork of one DeFi protocol, one point per day over a trailing window.

GET/api/external/protocol-analysis/protocol-forks-history/{slug}

What it returns

The combined value locked, in USD, in every protocol built on a copy of this protocol's code, one point per UTC day at 00:00, over a trailing window of days, oldest first. The total only: the forks one by one are GET /protocol-analysis/protocol-forks/{slug}, with the value locked in each today. The slug is the one GET /protocol-analysis/protocols lists. A protocol that is unknown, or that nothing forks, answers 404.

Chains

This endpoint is not tied to a chain: it takes no chain in its request.

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/protocol-analysis/protocol-forks-history/<slug>"
Parameters
ParameterDescription
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
slug

path · string · required

A DeFi protocol's slug, e.g. "pancakeswap-amm" — not a token mint or contract address, and not scoped to any single chain.

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 is locked in this protocol's forks, over time?
FieldTypeDescription
slugstringThe protocol asked about.
daysstringThe window returned.
pointsobject[]Oldest first, one per day.
points[].timestampintegerUnix seconds: 00:00 UTC of the day.
points[].usdnumberThe value locked in the protocol's forks 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