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.
/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>"
| Parameter | Description |
|---|---|
slugpath · 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.
| Field | Type | Description |
|---|---|---|
slug | string | The protocol asked about. |
name | string | Its name. |
usd | number | null | Everything it holds but its own token, over every chain, in USD. |
ownTokensUsd | number | null | Its own token, over every chain, in USD. |
chains | object[] | Most held first, own token included, then by chain name. |
chains[].chain | string | The chain, by its display name, e.g. Ethereum or OP Mainnet. |
chains[].usd | number | null | Everything it holds on this chain but its own token, in USD. |
chains[].ownTokensUsd | number | null | Its 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