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
string
required
The unique identifier for the vault.
Returns
object
The vault’s underlying asset, with
address, symbol, and decimals fields.string
Total amount deposited into the vault, in the token’s smallest unit.
string
Total amount withdrawn from the vault, in the token’s smallest unit.
string
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
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.

