GetHistory

Historical TVL data.
https://public.defipulse.com/api/GetHistory?period=1w&project=maker

Parameter

Description

api-key

Use an API key to avoid rate limiting.

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.

period

Time period: 1w, 1m, 3m, 1y or all. The 1w period will return hourly values, all other periods will return daily values. Default: all.

length

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

Desired resolution: hours or history (=days), used together with length for a more granular control over the returned data set.

category

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.

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: 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.

[
{"timestamp":1586343600,
"tvlUSD":360173025,
"tvlETH":2148106.5485775634,
"ETH":2015959.408102637,
"DAI":19036661.251896158},
...
]