DeFi protocols API

What does this protocol hold in its own treasury right now?

The value a DeFi protocol's treasury holds today, per chain, with its own token kept apart from everything else.

GET/api/external/protocol-analysis/protocol-treasury/{slug}

What it returns

The value in USD of what a protocol's treasury holds right now, on every chain it holds on, with its own token kept apart: usd is everything else, ownTokensUsd its own token, on each chain and in total. Treasuries are tracked on the parent protocol (aave, uniswap), not on its versions. A protocol that is unknown, or whose treasury is not tracked, answers 404. The same total over time: GET /protocol-analysis/protocol-history/{slug}?metric=treasury.

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-treasury/<slug>"
Parameters
ParameterDescription
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 What does this protocol hold in its own treasury right now?
FieldTypeDescription
slugstringThe protocol asked about.
namestringIts name.
usdnumber | nullEverything it holds but its own token, over every chain, in USD.
ownTokensUsdnumber | nullIts own token, over every chain, in USD.
chainsobject[]Most held first, own token included, then by chain name.
chains[].chainstringThe chain, by its display name, e.g. Ethereum or OP Mainnet.
chains[].usdnumber | nullEverything it holds on this chain but its own token, in USD.
chains[].ownTokensUsdnumber | nullIts own token on this chain, 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