Discovery and markets API
Protocol share history brief: the leading protocols of a category or chain
The 10 protocols earning the most fees, revenue or DEX volume of a DeFi category or chain, with totals and a few points.
/api/external/discovery/protocol-share-history-briefWhat it returns
The brief of protocol-share-history; prefer it unless you need every day or more protocols. The same metric, category, chain and window: the 10 largest protocols by total over the window, in that endpoint's ranking, each with its total and at most 30 of its daily points evenly spaced over its days, the first and the newest always kept. partsRanked still counts every protocol the window names.
Chains
- Solana SOL
- Ethereum ETH
- BNB Chain BNB
- Base BASE
- Stable STABLE
- 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/protocol-share-history-brief"
| Parameter | Description |
|---|---|
metricquery · string · optional | fees: what users paid. revenue: what the protocols kept, with category=lending or no category. volume: DEX trading volume, with category=dexs or no category. Defaults to fees.feesrevenuevolume |
categoryquery · string · optional | Only protocols of this kind: lending, dexs (exchanges), liquid-staking, derivatives, launchpad or dex-aggregator. Omit for every kind, which then needs chain.lendingdexsliquid-stakingderivativeslaunchpaddex-aggregator |
chainquery · string · optional | Only figures on this chain; with a category, for lending and dexs only. Omit for every chain, which then needs category. |
daysquery · string · optional | How many trailing days to return, or all for the whole series. Defaults to 90.73090180365all |
limitquery · integer · optional | How many protocols to return, largest first, 1 to 50. Defaults to 10. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
metric | string | The series returned. |
category | string | null | The category asked about, or null for every kind of protocol. |
chain | string | null | The chain asked about, or null for every chain. |
days | string | The window returned. |
partsRanked | integer | How many protocols the window names, before limit is applied. |
parts | object[] | The 10 largest protocols at most, largest total first; ties ordered by name. |
parts[].name | string | The protocol, by display name (e.g. Aave V3). |
parts[].pointCount | integer | Days in the part's full series over the window. |
parts[].totalUsd | number | null | The sum of the protocol's day totals over the window, in USD, to the cent: over every point, not only the ones listed. Can be negative for revenue. |
parts[].points | object[] | At most 30 of the part's points, evenly spaced over the days that name it, oldest first; the first and the newest are always kept. |
parts[].points[].timestamp | integer | Unix seconds, 00:00 UTC of the day. |
parts[].points[].usd | number | The protocol's total 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