Skip to main content

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

ParameterTypeRequiredDescription
protocolstringnoSpecifies the protocol name.
chainstringnoSpecifies the chain name.
dailyboolnoSpecifies whether to get daily (true) or accumulated data (default false).

Response Status Codes

StatusDescription
200 OKSuccess. 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"
],
...
]