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
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
Get User PnL History
Returns time-series PnL snapshots for charting a user’s position over time.getUserPnlHistory
Get User Fees and Rewards
Returns cumulative fees and rewards earned by the user in a specific strategy.getUserFeesAndRewards
Get User Rewards History
Returns historical rewards earned by a wallet across all strategies.getUserRewardsHistory
Get User Transactions
Deposit, withdrawal, and claim transaction history for a wallet across all strategies.getUserTransactions
Position Types
TypeScript shapes returned by the Kliquidity SDK for user position reads.- KaminoPosition
- Holdings
- TokenAmounts
- StrategyHolder
A user’s share holdings in a specific strategy.