How to check protocol info
Overview
Before implementing lending/yield features in your application, you'll need to retrieve essential information such as APY rates, minimum deposit requirements, and other terms. This guide explains how to fetch this data using our Protocol Data API endpoints.
In the yield category, we encompass various passive income-generating activities in DeFi. This includes lending (where users earn interest by providing liquidity), investing in yield-generating vaults (which automatically compound returns), and staking (where users lock tokens to earn rewards). Essentially, any protocol or strategy that allows users to deposit assets and earn passive returns falls under this category. The Protocol Data API provides information about these different yield opportunities, helping you choose the most suitable option for your users' needs.
Two Integration Approaches
A) Protocol-Specific Approach (Explicit)
Use this when you want to work with a specific lending protocol.
Get Available Protocols First, retrieve the list of all supported protocols:
Query Protocol Details Then, fetch specific protocol information using:
Required Parameters:
ParameterDescriptionExample:id
Strategy ID
679044af61866a32dd2d39e9
Example Request:
Response includes:
Current APY rate (spotPosition.apy)
Inception APY rate (spotPosition.inceptionApy)
Average APY rate (spotPosition.avgApy)
Example Response:
B) Protocol-Agnostic Approach (Less Explicit)
Let our system automatically select the optimal protocol for your needs.
Use the Generic Endpoint
Use the same parameters as above, excluding
protocol
.Our system will analyze your requirements and return the best protocol option based on:
Highest APY rates
Additional reward incentives
Current market conditions
Protocol reliability
UI Integration Example
Next Steps
After retrieving protocol information, you can proceed to:
Execute a deposit
Monitor your yield positions
Last updated