assets_in_vault field shows the current redeemable value, including accrued yield.
View the full API reference for the get position
endpoint.
Usage
- REST API
To check a wallet’s position via REST API, make a
GET request to:Parameters
The unique identifier for the vault.
Returns
The vault’s underlying asset, with
address and symbol fields.Total amount deposited into the vault, in the token’s smallest unit.
Total amount withdrawn from the vault, in the token’s smallest unit.
Current redeemable value of the wallet’s vault shares, including accrued yield.
Number of vault shares held by the wallet.
Example
Example response
Display balances
| Field | What it represents | How to use it |
|---|---|---|
assets_in_vault | Current redeemable value including yield | Show this as the user’s current balance |
total_deposited | Sum of all deposits | Use as the user’s cost basis |
total_withdrawn | Sum of all withdrawals | Subtract from total_deposited for net contributions |
shares_in_vault | Raw vault shares held | Rarely shown to users — use assets_in_vault instead |
Calculate earned yield
To display how much yield a wallet has earned:assets_in_vault is 850 USDC:
All amounts are in the token’s smallest unit. For USDC (6 decimals), divide by
10^6 before
displaying to users. For example, 1050000 equals 1.05 USDC.Next steps
Get vault details
Retrieve vault-level information like APY, TVL, and available liquidity.

