Historical TVL

Historical Total Value Locked data

get
GetHistory

https://public.defipulse.com/api/GetHistory?period=1w&project=maker
Returns historical Total Value Locked (TVL) for a given project over a given period of time.
Request
Response
Request
Headers
api-key
required
string
Create a free account at data.defipulse.com to generate an API-key
Query Parameters
optional
string
project
optional
string
Project name. Corresponds to the slug of a project when clicking on it on defipulse.com. Example below
period
optional
string
Time period 1w, 1m, 3m, 1y or all . The 1wperiod will return to hourly values, all other periods will return daily values. Default all
length
optional
string
Desired length of data set in hours or days. Can be used as an alternative to period for a more granular control over the returned data set.
resolution
optional
string
Desired resolution hours or history(=days), used together with length for a more granular control over the returned data set
category
optional
string
Return data for a specific category only. For historical reasons, project=all is required for this to work. Current categories: lending, dexes, derivatives, payments, assets
Form Data Parameters
format
optional
string
Use csv to obtain data in CSV format instead of json.
Response
200: OK
See Additional Response Information below
[
{
"timestamp":1586343600,
"tvlUSD":360173025,
"tvlETH":2148106.5485775634,
"ETH":2015959.408102637,
"DAI":19036661.251896158
},
...]

Additional Resources:

Parameter

Description

project

Project name. Corresponds to the slug of a project when clicking on it on defipulse.com, e.g. https://defipulse.com/robo-advisor-for-yield -> robo-advisor-for-yield. Calling the endpoint without a project name, or with all will return historical TVL data for all tracked projects.

format

Use csv to obtain data in CSV format instead of json. Log into https://data.defipulse.com for a more granular control over CSV creation.

Response Information:

Observe that the first entry in the array concerns the ongoing period (hour or day), while the following entries always concern a full period (hour or day) in the past, stepping back in time, starting from the period before the ongoing period. Timestamps are Unix epoch time.