api.vaults.fyi/v2/historical/:network/:vaultId/tvl
Retrieves time-series historical TVL data for a specific vault, including base yield and rewards components over a customizable time range
GET
https://api.vaults.fyi/v2/historical/:network/:vaultId/tvlUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.vaults.fyi/v2/historical/:network/:vaultId/tvl?apyInterval=7day&fromTimestamp=0&granularity=1hour&page=0&perPage=50");
console.log(await res.json());Example input
{
"apyInterval": "7day",
"fromTimestamp": 0,
"granularity": "1hour",
"page": 0,
"perPage": 50
}More from vaults.fyi
- api.vaults.fyi/v2/detailed-vaults/:network/:vaultIdRetrieves a detailed performance metrics of single vault including APY, TVL, rewards, risk scores, and protocol information based on specified filters.0.006
- api.vaults.fyi/v2/detailed-vaults/:network/:vaultId/apyRetrieves vault APY breakdown.0.002
- api.vaults.fyi/v2/detailed-vaults/:network/:vaultId/tvlRetrieves vault Tvl breakdown.0.002
- api.vaults.fyi/v2/historical/:network/:vaultIdRetrieves historical APY and TVL for a specific vault, based on the provided query parameters.0.31
- api.vaults.fyi/v2/historical/:network/:vaultId/apyRetrieves time-series historical APY data for a specific vault, including base yield and rewards components over a customizable time range0.10
- api.vaults.fyi/v2/historical/:network/:vaultId/sharePriceRetrieves time-series historical TVL data for a specific vault, including base yield and rewards components over a customizable time range0.10
- api.vaults.fyi/v2/historical/asset-prices/:network/:assetAddressRetrieves historical USD prices for a specific asset on a given network.0.10
- api.vaults.fyi/v2/portfolio/best-deposit-options/:userAddressAnalyzes a user's existing wallet balances and recommends optimal vault deposit opportunities based on yield performance, risk parameters, and user-defined criteria.0.20
- api.vaults.fyi/v2/portfolio/best-vault/:userAddressReturns the single best vault opportunity for the user, based on balance and yield analysis.0.004
- api.vaults.fyi/v2/portfolio/events/:userAddress/:network/:vaultIdRetrieves all transactions (deposits and withdrawals) for a user's position in a specific vault, including transaction details and metadata.0.006
- api.vaults.fyi/v2/portfolio/idle-assets/:userAddressGet balances of idle assets for a specific user address.0.01
- api.vaults.fyi/v2/portfolio/positions/:userAddressProvides all vault positions for the user, with optional filters.0.01
