Get historical APY on single vault at single timestamp

get

Get historical APY data for a vault for block with closest timestamp to the given one

Authorizations
Path parameters
vaultAddressstringRequired

Address of a vault

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

Network name or caip

Possible values:
timestampintegerRequired

Timestamp of the historical data

Query parameters
intervalstring · enumRequired

Resolution of the APY data

Possible values:
Responses
200
Object describing the APY of the vault in given time
application/json
get
GET //v1/vaults/{network}/{vaultAddress}/historical-apy/{timestamp} HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
200

Object describing the APY of the vault in given time

{
  "timestamp": 1,
  "blockNumber": 1,
  "apy": {
    "base": 1,
    "rewards": 1,
    "total": 1
  }
}

Last updated