Kamino Lending
Get PnL per obligation v2
You can specify pnl mode with query param positionMode with one of these values: (obligation_all_time, current_obligation). By default, pnl mode is set to current_obligation position For xSOL pairs, useStakeRate query param can be set to true to calculate the PnL using the stake rate. By default, it is set to false.
These parameters specify whether we return the current position PnL or the accumulated PnL throughout the lifetime of the user's obligation (even before they were closed).
get/v2/kamino-market/{market-pubkey}/obligations/{obligation-pubkey}/pnl/
Response
OK