Prerequisites:
Retrieve Current Positions
Use the following endpoint to retrieve all the current yield positions of an address:0x1234567890123456789012345678901234567890 |
Example Request:
Response Format
The response returns an array of yield positions with spot performance data and the full strategy object for each. Example Response:Understanding the Response
spotPosition.currentPosition
spotPosition.currentPosition
Raw balance as a BigInt string in the token’s smallest unit (e.g.
"10000000" = 10 USDC)spotPosition.underlyingBalanceUSD
spotPosition.underlyingBalanceUSD
USD value of the position
spotPosition.apy / avgApy / inceptionApy
spotPosition.apy / avgApy / inceptionApy
apy: Current APY as a decimal (e.g.0.0417= 4.17%)avgApy: Time-weighted average APY since inceptioninceptionApy: APY since the strategy launched
strategy
strategy
Full strategy object (same shape as
GET /strategies/:id) including protocol, network, asset details, TVL, and feesummary.totalUnderlyingBalanceUSD
summary.totalUnderlyingBalanceUSD
Total portfolio value in USD across all positions
UI Integration Example
