Skip to main content

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

ParameterTypeRequiredDescription
protocolstringyesSpecifies the protocol name.
chainstringnoSpecifies the chain name.
tokenboolnoSpecifies whether to return TVL denominated in token amount. By default TVL is denominated in USD. Default is false.

Response Status Codes

StatusDescription
200 OKSuccess. Returns detailed historical TVL data.
400 Bad RequestMissing 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"
],
...
]