Skip to main content

Reading User Position Data

Retrieve user holdings, profit and loss, fees and rewards, and transaction history using the Kamino API.
Historical user data is only available via the API. For the TypeScript shapes returned by the methods below, see Position Types.

Get User Positions

Live read of a wallet’s positions with USD value calculated from each strategy’s share price.
getUserPositions
View Code

Get User PnL

Returns current profit and loss data for a user’s position in a specific strategy. Returns USD, SOL, and token denominations.
getUserPnl
View Code

Get User PnL History

Returns time-series PnL snapshots for charting a user’s position over time.
getUserPnlHistory
View Code

Get User Fees and Rewards

Returns cumulative fees and rewards earned by the user in a specific strategy.
getUserFeesAndRewards
View Code

Get User Rewards History

Returns historical rewards earned by a wallet across all strategies.
getUserRewardsHistory
View Code

Get User Transactions

Deposit, withdrawal, and claim transaction history for a wallet across all strategies.
getUserTransactions
View Code

Position Types

TypeScript shapes returned by the Kliquidity SDK for user position reads.
A user’s share holdings in a specific strategy.

Additional Resources

API Examples

SDK Examples