Channels at a glance
| Channel | Best for | Endpoint / package |
|---|---|---|
| REST API | Dashboards, alerts, integrations that need historical data | https://api.kamino.finance |
| TypeScript SDK | Apps computing live APYs, building transactions, reacting to state | @kamino-finance/klend-sdk |
| Direct RPC | Lowest-latency access, minimal dependencies | Solana RPC + the program’s account decoders |
List all markets
Market-wide TVL and totals
Per-reserve metrics
Historical reserve metrics
Historical time-series data is API-only. The SDK reads live state; the API serves historical series.Rewards data
The Kamino API exposes reward data such as active campaigns and per-user claimable amounts for klend reserves.All active reward programs
A user’s claimable rewards across all reserves
Live farm state from the SDK
For real-time emission rates and on-chain farm balances, read the KFarmsFarmState directly:
What the SDK exposes per reserve
reserve instances loaded via market.getReserves() provide the following getters:
| Method | Returns |
|---|---|
reserve.symbol | Token symbol |
reserve.address | Reserve account pubkey |
reserve.getDepositTvl() | Total USD value deposited |
reserve.getBorrowTvl() | Total USD value borrowed |
reserve.totalBorrowAPY(slot) | Combined borrow APY (curve + host fixed) |
reserve.totalSupplyAPY(slot) | Supply-side APY paid to depositors |
reserve.calculateUtilizationRatio() | Borrowed / deposited, as a fraction |
reserve.getCollateralFarmAddress() | Farm address for the collateral side, or null |
reserve.getDebtFarmAddress() | Farm address for the debt side, or null |
reserve.config | The on-chain ReserveConfig (every editable parameter) |
Direct RPC reads
For the lowest-level access (minimal dependencies, fastest reads, no SDK abstraction), fetch the on-chain accounts directly via Solana RPC and decode them with the program’s IDL or struct definitions. The relevant accounts:| Account | What it holds |
|---|---|
LendingMarket | Market-level config + flags |
Reserve | Per-reserve config + live state (liquidity, collateral, withdraw queue) |
Obligation | Per-user position (deposits + borrows) |
FarmState | KFarms reward state for a collateral or debt farm |
Reference
Full API Reference
OpenAPI-rendered reference for every endpoint
SDK examples
Working code examples in the klend-sdk repo
Programmatic integration
Where to go for SDK / API / RPC integration docs
Farms & rewards
Curator-side farm management