Get historical APY and TVL data on single vault over timestamp range

get

Get historical APY data for a vault for blocks in given timestamp range

Authorizations
Path parameters
vaultAddressstringRequired

Address of a vault

Pattern: ^0x[a-fA-F0-9]{40}$
networkstring · enumRequired

Network name or caip

Possible values:
Query parameters
pageintegerOptional

Page number

Default: 0
per_pageinteger · max: 50Optional

Number of items per page

Default: 10
intervalstring · enumOptional

Resolution of the APY data

Default: 7dayPossible values:
from_timestampintegerOptional

Timestamp of the beginning of the range in epoch seconds

Default: 1739374158
to_timestampintegerOptional

Timestamp of the end of the range in epoch seconds

Default: 1741966158
granularityintegerOptional

Time difference between returned data points

Default: 86400
Responses
200
Default Response
application/json
get
GET //v1/vaults/{network}/{vaultAddress}/historical-data HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
200

Default Response

{
  "next_page": 1,
  "data": [
    {
      "timestamp": 1,
      "blockNumber": 1,
      "apy": {
        "base": 1,
        "rewards": 1,
        "total": 1
      },
      "tvlDetails": {
        "tvlNative": "text",
        "tvlUsd": "text",
        "lockedNative": "text",
        "lockedUsd": "text",
        "liquidNative": "text",
        "liquidUsd": "text"
      }
    }
  ]
}