Skip to main content
GET
/
v2
/
kamino-market
/
{marketPubkey}
/
obligations
/
{obligationPubkey}
/
pnl
Get profit and loss for an obligation
curl --request GET \
  --url https://api.kamino.finance/v2/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/pnl
{
  "usd": "25.21",
  "sol": "1.0",
  "invested": {
    "usd": "1234.56789",
    "sol": "1234.56789"
  }
}

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
enum<string>
default:mainnet-beta

Solana cluster environment

Available options:
mainnet-beta,
devnet,
localnet
Example:

"mainnet-beta"

programId
string
default:KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD

KLend program ID

Example:

"KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"

useStakeRate
enum<string>
default:false

For xSOL pairs, calculate the PnL using the stake rate

Available options:
true,
false
Example:

"true"

Response

OK

usd
string
required

PnL in USD

Example:

"25.21"

sol
string
required

PnL in SOL

Example:

"1.0"

invested
object

Invested amounts