DefiLlama TVL Details
/api/v1/defillama/tvl/detail
Description
Get detailed historical Total Value Locked (TVL) data for given protocol
and chain
parameters.
Method
GET
Source
Database
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
protocol | string | yes | Specifies the protocol name. |
chain | string | no | Specifies the chain name. |
token | bool | no | Specifies whether to return TVL denominated in token amount. By default TVL is denominated in USD. Default is false . |
Response Status Codes
Status | Description |
---|---|
200 OK | Success. Returns detailed historical TVL data. |
400 Bad Request | Missing required parameter. |
Example: Get detailed historical TVL for Lido protocol
Request
GET /api/v1/defillama/tvl/detail?protocol=lido
Response
[
[
"Date",
"Token",
"Usd"
],
[
"12/19/2020 23:00:00",
"WETH",
"1484680.728490"
],
[
"12/20/2020 23:00:00",
"WETH",
"2697598.312380"
],
[
"12/21/2020 23:00:00",
"WETH",
"3410253.516730"
],
[
"12/22/2020 23:00:00",
"WETH",
"4563625.919540"
],
...
]
Example: Get detailed historical TVL for Lido protocol on Ethereum blockchain
Request
GET /api/v1/defillama/tvl/detail?protocol=lido&chain=ethereum
Response
[
[
"Date",
"Token",
"Usd"
],
[
"12/19/2020 23:00:00",
"WETH",
"2272.266880"
],
[
"12/20/2020 23:00:00",
"WETH",
"4140.771430"
],
[
"12/21/2020 23:00:00",
"WETH",
"5562.490080"
],
[
"12/22/2020 23:00:00",
"WETH",
"7528.376870"
],
...
]