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 APY

The Vault APY (GET /v1/vaults/{network}/{vaultAddress}/apy) endpoint serves as a focused utility for obtaining the Annual Percentage Yield (APY) data for a specific vault over designated time intervals. This endpoint is essential for investors and analysts seeking to evaluate the performance of a vault in terms of earnings.

Parameters

  • interval (required): Specifies the granularity of the APY data being requested. Possible values are 1day, 7day, and 30day, each indicating the APY calculated over that time period.

  • vaultAddress (required): The blockchain address of the vault for which APY data is being requested. This is a path parameter that forms part of the endpoint URL.

  • network (required): Represents the network on which the specified vault operates. This path parameter accepts values such as mainnet, arbitrum, optimism, polygon, base, and gnosis.

Responses

  • 200 OK: The successful request returns an object that provides the APY percentage, structured in JSON format. The information is current and represents the latest computed APY according to the specified interval.

An example of the response is:

{
  "base": 0,
  "rewards": 0,
  "total": 0
}

In this response:

  • base denotes the APY value generated by the vault, expressed as a percentage.

  • rewards denotes the APY value generated by the vault's rewards, expressed as a percentage.

  • total denotes the sum of base and rewards APY.

This endpoint is particularly valuable for real-time decision-making and financial analysis. It allows users to assess and track the profitability of vaults over different periods. By providing up-to-date performance metrics, it enables users to make informed choices regarding their investments in the DeFi sector.

Last updated 7 months ago