v1

latestOpenAPI 3.1.02026-08-0466147138.0 KB
Protocol

Get protocol stats

Get historical stats for a protocol, comprising all of its vaults. If no parameters are passed, response will span the full range of available data.If a timestamp is passed, the data will be for that point in time. If a start and end timestamp are passed, the data will be for that range.

get/protocol/{id}/stats

Path parameters

idstring required

Protocol ID to return stats for

Example:20ea4lMXEYCmpAhjuLKuD

Protocol ID to return stats for

Query parameters

start_timestampinteger

Unix timestamp for the start of the time series data

Example:1726225932

Unix timestamp for the start of the time series data

end_timestampinteger

Unix timestamp for the end of the time series data

Example:1729225932

Unix timestamp for the end of the time series data

granularity'hour' | 'day'

Granularity of the time series data. Default is day.

Example:day

Granularity of the time series data. Default is day.

timestampinteger

Unix timestamp if you want the data at a point in time instead of a range

Example:1726654050

Unix timestamp if you want the data at a point in time instead of a range

fetch_superform_tvlboolean

Calculate the Superform (not overall) TVL for all the vaults comprising this protocol

Example:true

Calculate the Superform (not overall) TVL for all the vaults comprising this protocol

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

superform_tvlnumber double
total_vaultsinteger required
tvlnumber double required
tvl_24h_changenumber double required

Example response

{
  "$schema": "https://api.superform.xyz/schemas/HistoricalProtocolResponseBody.json"
}