Historical
Retrieves historical APY and TVL for a specific vault, based on the provided query parameters.
Include only vaults with provided network(name or CAIP)
Address of the vault for which the data will be returned
^0x[a-fA-F0-9]{40}$
Page number (starting from 0)
0
Number of items per page
50
Interval for APY data. Possible values: 1day, 7day, 30day
7day
Possible values: Granularity for historical data (even intervals starting from epoch 0). Possible values: 1hour, 1day, 1week
1hour
Possible values: Timestamp for the start of the time period for which data will be fetched
0
Timestamp for the end of the time period for which data will be fetched
GET //v2/historical/{network}/{vaultAddress} HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
{
"itemsOnPage": 1,
"nextPage": 1,
"data": [
{
"timestamp": 1,
"blockNumber": "text",
"apy": {
"base": 1,
"reward": 1,
"total": 1
},
"tvl": {
"usd": "text",
"native": "text"
}
}
]
}
Retrieves time-series historical APY data for a specific vault, including base yield and rewards components over a customizable time range
Include only vaults with provided network(name or CAIP)
Address of the vault for which the data will be returned
^0x[a-fA-F0-9]{40}$
Page number (starting from 0)
0
Number of items per page
50
Interval for APY data. Possible values: 1day, 7day, 30day
7day
Possible values: Granularity for historical data (even intervals starting from epoch 0). Possible values: 1hour, 1day, 1week
1hour
Possible values: Timestamp for the start of the time period for which data will be fetched
0
Timestamp for the end of the time period for which data will be fetched
GET //v2/historical/{network}/{vaultAddress}/apy HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
{
"itemsOnPage": 1,
"nextPage": 1,
"data": [
{
"timestamp": 1,
"blockNumber": "text",
"apy": {
"base": 1,
"reward": 1,
"total": 1
}
}
]
}
Retrieves time-series historical TVL data for a specific vault, including base yield and rewards components over a customizable time range
Include only vaults with provided network(name or CAIP)
Address of the vault for which the data will be returned
^0x[a-fA-F0-9]{40}$
Page number (starting from 0)
0
Number of items per page
50
Interval for APY data. Possible values: 1day, 7day, 30day
7day
Possible values: Granularity for historical data (even intervals starting from epoch 0). Possible values: 1hour, 1day, 1week
1hour
Possible values: Timestamp for the start of the time period for which data will be fetched
0
Timestamp for the end of the time period for which data will be fetched
GET //v2/historical/{network}/{vaultAddress}/tvl HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
{
"itemsOnPage": 1,
"nextPage": 1,
"data": [
{
"timestamp": 1,
"blockNumber": "text",
"tvl": {
"usd": "text",
"native": "text"
}
}
]
}
Last updated