DefiLlama Revenues
/api/v1/defillama/revenue
Description
Get 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 historical revenue data. |
400 Bad Request |
Example: Get historical daily revenues for Lido protocol
Request
GET /api/v1/defillama/revenue?protocol=lido
Response
[
[
"Date",
"Usd"
],
[
"12/20/2020 00:00:00",
"0.000000"
],
[
"12/21/2020 00:00:00",
"0.000000"
],
[
"12/22/2020 00:00:00",
"0.000000"
],
[
"12/23/2020 00:00:00",
"0.000000"
],
[
"12/24/2020 00:00:00",
"0.000000"
],
...
]
Example: Get historical daily revenues on Ethereum blockchain
Request
GET /api/v1/defillama/revenue?chain=ethereum
Response
[
[
"Date",
"Usd"
],
[
"10/11/2019 00:00:00",
"93263.61059360419"
],
[
"10/12/2019 00:00:00",
"90112.42694399766"
],
[
"10/13/2019 00:00:00",
"88717.33623899083"
],
[
"10/14/2019 00:00:00",
"90665.62777646937"
],
[
"10/15/2019 00:00:00",
"94176.5676775764"
],
[
"10/16/2019 00:00:00",
"94966.31896808709"
],
...
]