Position Health Metrics
| Metric | Description |
|---|---|
| Total Deposit | The total USD value of all collateral deposited into the position |
| Total Borrow | The total USD value of debt owed on the position |
| Net Value | Equity in the position. Calculated as Total Deposit - Total Borrow. Represents the value that would be received if all debt were repaid and collateral withdrawn |
| Leverage | Capital amplification multiplier. 1x = no leverage (collateral only), 2x = borrowed amount equals deposit, 3x = borrowed twice the deposit amount |
| Borrow Limit | Maximum borrowing capacity before approaching liquidation threshold. Total Borrow must remain below this value |
| Liquidation LTV | The loan-to-value percentage at which the position becomes eligible for liquidation. Varies by asset pair and eMode settings |
Get Position Health Metrics
- SDK
- API
Import Dependencies
Import the required packages for Solana RPC communication and Kamino SDK operations.Load Market and Initialize RPC
Load the keypair, initialize RPC connection, and load the xStocks market.Fetch Multiply Obligations
Retrieve all multiply obligations for the wallet address using the obligation type filter.getUserObligationsByTag filters obligations by type. For example, use ObligationTypeTag.Multiply to retrieve only multiply positions.ObligationTypeTag Values:
| Type | Value & Description |
|---|---|
ObligationTypeTag.Vanilla | 0: Cross-collateral mode positions |
ObligationTypeTag.Multiply | 1: Leveraged positions created via Multiply |
ObligationTypeTag.Lending | 2: Lending-only positions |
ObligationTypeTag.Leverage | 3: Legacy leverage positions |
Read Position Health Metrics
Access the position health statistics from each obligation’srefreshedStats.You now have access to all position health metrics including leverage, borrowing capacity, and liquidation thresholds.
Liquidation LTV by Asset Pair
| Mode | Asset Pair | Liquidation LTV | Max Leverage |
|---|---|---|---|
| Standard | SOL / USDC | 75% | 4x |
| Standard | TSLAx / USDC | 65% | ~2.9x |
| eMode (Main) | mSOL, bSOL, JupSOL / SOL | ~87% | ~7.7x |
| eMode (Jito) | JitoSOL / SOL | 90% | 10x |
| No eMode | JLP / USDC | 67% | ~3.2x |
For detailed leverage calculations and eMode mechanics, see LTV and Leverage Concepts.