DefiLlama Revenue Details
/api/v1/defillama/revenue/detail
Description
Get detailed historical revenue data for given protocol
and/or chain
parameters.
All revenues are denominated in USD.
Method
GET
Source
Database
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
protocol | string | no | Specifies the protocol name. |
chain | string | no | Specifies the chain name. |
daily | bool | no | Specifies whether to get daily (true ) or accumulated data (default false ). |
Response Status Codes
Status | Description |
---|---|
200 OK | Success. Returns detailed historical revenue data. |
400 Bad Request |
Example: Get detailed historical revenue data for Lido protocol
Request
GET /api/v1/defillama/revenue/detail?protocol=lido
Response
[
[
"Date",
"Chain",
"Platform",
"Usd"
],
[
"12/20/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
[
"12/21/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
[
"12/22/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
[
"12/23/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
...
]
Example: Get detailed historical revenue data on Ethereum blockchain
Request
GET /api/v1/defillama/revenue/detail?chain=ethereum
Response
[
[
"Date",
"Platform",
"Usd"
],
[
"10/11/2019 00:00:00",
"Opensea API/V1",
"93263.610594"
],
[
"10/11/2019 00:00:00",
"Uniswap API/V1",
"0.000000"
],
[
"10/12/2019 00:00:00",
"Opensea API/V1",
"90112.426944"
],
[
"10/12/2019 00:00:00",
"Uniswap API/V1",
"0.000000"
],
[
"10/13/2019 00:00:00",
"Opensea API/V1",
"88717.336239"
],
...
]