# Get profit and loss for an obligation Get profit and loss (PnL) for a specific obligation. You can specify PnL mode with query param positionMode (obligation_all_time or current_obligation). For xSOL pairs, useStakeRate can be set to true to calculate the PnL using the stake rate. Endpoint: GET /v2/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/pnl Version: 1.0.0 ## Path parameters: - `marketPubkey` (string, required) Kamino Lend market public key Example: "7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF" - `obligationPubkey` (string, required) Kamino Lend obligation public key Example: "63QrAB1okxCc4FpsgcKYHjYTp1ua8ch6mLReyKRdc22o" ## Query parameters: - `env` (string) Solana cluster environment Enum: "mainnet-beta", "devnet", "localnet" - `positionMode` (string) Position mode for PnL calculation Enum: "obligation_all_time", "current_obligation" - `useStakeRate` (string) For xSOL pairs, calculate the PnL using the stake rate Enum: "true", "false" ## Response 200 fields (application/json): - `usd` (string, required) Total Value Locked in USD Example: "25.21" - `sol` (string, required) Total Value Locked in USD Example: "1.0" - `invested` (object) Invested amounts ## Response 500 fields (application/json): - `error` (string, required) Error message for internal server failure Example: "An internal error occurred"