DefiLlama Fee Details
/api/v1/defillama/fee/detail
Description
Get detailed historical fee data for given protocol
and/or chain
parameters.
All fees 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 fee data. |
400 Bad Request |
Example: Get detailed historical fee data for Lido protocol
Request
GET /api/v1/defillama/fee/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 fee data on Ethereum blockchain
Request
GET /api/v1/defillama/fee/detail?chain=ethereum
Response
[
[
"Date",
"Platform",
"Usd"
],
[
"10/11/2019 00:00:00",
"Opensea API/V1",
"249928.924885"
],
[
"10/11/2019 00:00:00",
"Uniswap API/V1",
"774318.893679"
],
[
"10/12/2019 00:00:00",
"Opensea API/V1",
"241561.111417"
],
[
"10/12/2019 00:00:00",
"Uniswap API/V1",
"775430.108641"
],
[
"10/13/2019 00:00:00",
"Opensea API/V1",
"239537.891835"
],
[
"10/13/2019 00:00:00",
"Uniswap API/V1",
"776703.781307"
],
...
]