Skip to main content
GET
Get profit and loss for an obligation

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"

accountingVersion
enum<number>
required

PnL accounting version

Available options:
2
status
enum<string>
required

Accounting completeness

Available options:
complete,
partial,
unavailable
reasons
string[]
required

Reasons for partial or unavailable accounting

invested
object

Invested amounts

truncatedHistory
boolean

Set when the obligation transaction history exceeded the computation cap and older transactions were dropped from the PnL calculation