Skip to main content
GET
Get profit and loss history 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"

start

Date input (ISO 8601 string or epoch in ms)

Example:

"2024-01-01T00:00:00.000Z"

end

Date input (ISO 8601 string or epoch in ms)

Example:

"2024-01-01T00:00:00.000Z"

Response

OK

history
object[]
required
totalPnl
object
required

Current PnL; start and end do not affect it

invested
object
required

Current net capital invested; start and end do not affect it

truncatedHistory
boolean
required

True when the computation cap dropped older transactions or periodic points

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