Skip to main content
In this section, we’ll learn how to retrieve the current yield positions for an address.

Retrieve Current Positions

Use the following endpoint to retrieve all the current yield positions of an address:
Required Parameters: Optional Parameters: Slim Request:
Use the slim request when the client needs the calculated position, principal, and profit but does not consume raw actions or wallet history.

Response Format

The response returns yield positions under earn.positions and an aggregate under earn.summary. By default it also includes raw actions and paginated wallet activity under history; the slim request omits both without changing the position accounting. Example Response:

Understanding the Response

Raw balance as a BigInt string in the token’s smallest unit (e.g. "10000000" = 10 USDC)
USD value of the position
Current gain or loss of the position relative to the cost basis still invested, taking into account adjustments such as partial withdrawals. This reflects the true economic result of the open position — what the client has effectively earned on the capital that remains deployed.
  • value: the gross figure, before Pods fees.
  • afterFees: the same figure net of the performance and markup fees — value × (1 - (performanceFeeBps + markupFeeBps) / 10000). Display this one. Fees apply to profit only, so when value is negative afterFees equals it exactly. See Fees for the full rules.
A simpler accumulated view of the overall result: the current position value minus the total net amount moved by the client (deposits minus withdrawals). This does not adjust for the changing cost basis and gives a straightforward picture of how much value has been generated since inception.
  • apy: Current APY as a decimal (e.g. 0.0417 = 4.17%)
  • grossAPY: APY before performance fees are deducted (decimal). May be null when not applicable.
  • netAPY: APY after performance fees are deducted (decimal). May be null when not applicable.
  • avgApy: Time-weighted average APY since inception
  • inceptionApy: APY since the strategy launched
For strategies with queued (request-based) investment flows, these arrays contain pending amounts not yet settled on-chain:
  • requestedToLend: Array of amounts pending deposit (e.g. a request-lend action that is PENDING)
  • requestedToWithdraw: Array of amounts pending withdrawal (e.g. a request-withdraw action that is PENDING)
Each entry has the same shape as currentPosition (value, decimals, humanized, symbol). These fields are only present on strategies that support the request-lend / request-withdraw action flow.
Full strategy object (same metadata exposed by GET /v2/strategies/:strategyId) including protocol, network, asset details, and fee
Total portfolio value in USD across all positions

UI Integration Example

Active yield positions in UI Example UI showing active yield positions

Next Steps

Withdraw

Learn how to withdraw from a position

New Deposit

Open a new yield position