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/

Request

  • Base URL
    https://api.kamino.finance
  • Auth
    none declared

Path parameters

market-pubkeystring required

market-public key

obligation-pubkeystring required

obligation public key

Query parameters

positionModestring

values allowed: obligation_all_time, current_obligation

useStakeRatestring

true or false

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.