vaults.fyi
  • General
    • 🏦Overview
    • 💡Use Cases
      • For Wallets and Apps
      • For Analysts
      • For Protocols & Product Teams
    • 🔎Methodology
      • vaults.fyi USD benchmark rate
      • vaults.fyi ETH benchmark rate
    • ❓FAQ
      • Vault requirements for inclusion on vaults.fyi
    • 🤖AI
  • API
    • Introduction
      • Market data
      • Transactional support
      • Portfolio tracking
      • Personalized insights
  • Endpoints
    • General
    • Detailed Vaults
    • Historical
    • Portfolio
    • Transactions
    • Legacy (v1) endpoints
      • v1 Market data
        • Get historical data
          • Get historical APY and TVL data on single vault over timestamp range
          • Get historical APY on single vault over timestamp range
          • Get historical TVL on single vault at single timestamp
          • Get historical APY on single vault at single timestamp
        • Get data for multiple vaults
        • Get data on single vault
          • Get APY on single vault
        • Get benchmark rates
        • Get supported vaults, networks & tokens
          • /vaults
          • /networks
          • /tokens
          • /tags
      • v1 Contextual insights
        • Top vault options for address
        • Get single top option for address
        • [Etherscan cards] Get top USD, top ETH vault for address
      • v1 Generate payloads
        • Prepare calldata
          • Supply/Deposit
          • Withdraw/Redeem
            • Request redeem
            • Claim redeem
          • Claim rewards
        • Get contract interaction details
        • Get supported assets
        • Get supported vaults
      • v1 Position tracking
        • Get user balances
        • Get user positions
        • Get list of past vault txns by user address
        • Get estimated returns for user's vault position
  • Case Studies
    • Kraken Wallet
    • Etherscan Cards
    • Gauntlet
  • Plans
    • Credits
      • Credits (v1 endpoints)
  • Links
    • vaults.fyi
    • X
    • Farcaster
    • Wallfacer Labs
Powered by GitBook
On this page
  1. API
  2. Introduction
  3. Market data
  4. Insights (Basic)
  5. Vault Endpoints

Vault Historical TVL

The Vault Historical TVL (GET /v1/vaults/{network}/{vaultAddress}/historical-tvl/{timestamp}) endpoint is a data retrieval service designed to obtain historical Total Value Locked (TVL) figures for a particular vault at a specific timestamp. It caters to the need for historical data analysis, allowing users to track the TVL changes over time and assess vault growth or decline.

Parameters

  • vaultAddress (required): The address of the vault in question. This information is included as a path parameter and is essential to targeting the correct data set within the system.

  • network (required): The network identifier supports a variety of blockchain networks, such as mainnet, arbitrum, optimism, polygon, base, and gnosis. It is also a path parameter that needs to match the vault's network.

  • timestamp (required): A Unix epoch time or equivalent numeric timestamp indicating the specific moment for which the historical TVL data is requested. The system will fetch the closest available data point to this timestamp.

Responses

  • 200 OK: On success, this endpoint returns a JSON object that includes the timestamp, block number, and the corresponding TVL for the vault at that particular historical moment.

The response will generally look like the following:

{
  "timestamp": 0,
  "blockNumber": 0,
  "tvlDetails": {
    "tvlNative": "string",
    "tvlUsd": "string",
    "lockedNative": "string",
    "lockedUsd": "string",
    "liquidNative": "string",
    "liquidUsd": "string"
  },
  "tvl": "string"
}

In this structure:

  • timestamp is the actual timestamp for which the data was retrieved, which may be the closest available match to the requested timestamp.

  • blockNumber refers to the specific block on the blockchain that corresponds to the retrieved timestamp.

  • tvlDetails is an array of data on "Total value locked" in the vault in both native token and USD terms. TVL figures indicate the total value locked in the vault at that time, typically represented in a string format which may be converted to a numerical value for quantitative analysis.

  • liquid and locked offer insights into the liquidity and lock-up status of assets within the vault. (Sometimes it is impossible to estimate liquid/locked values precisely. In conditions where some portion of the TVL is "uncertain", the proportion would always lean towards putting it as locked value.)

This endpoint is indispensable for conducting temporal analysis and understanding a vault's financial history. This can provide insights into trends and help forecast future performance.

Last updated 6 months ago