When a Multiply position is opened, Kamino’s on-chain program immediately begins tracking and updating position health metrics. These metrics update with every transaction that affects the position and recalculate based on current collateral prices and debt accrual. The protocol stores six core metrics that describe position size, leverage level, borrowing capacity, and liquidation risk.Documentation Index
Fetch the complete documentation index at: https://kamino.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.