Skip to main content

Reading Vault Data

Retrieve vault TVL, APY, farm rewards, allocation weights, and user share balances using the Kamino SDK and API.
Historical vault data is only available via the API.
1

Get All Vaults

This fetches all available Kamino vaults from the API, and returns an array of vault objects containing address, state, and configuration data for each vault.
getAllVaults
View Code
2

Get Vault Info

Retrieves real-time vault metrics including holdings, APY rates, and exchange rate. And uses the SDK to query on-chain vault state and performance data.
Using the SDK requires a private RPC connection or the public rate-limited RPC endpoint.
getVaultInfo
View Code
3

Get User Vault Position Historical Info

This queries historical performance metrics for a specific user’s position in a vault over a time range, and returns time-series data including the user’s balance, yield, and allocation changes.
getUserVaultPositionHistory
View Code
4

Get Vault Metrics History

Retrieves historical vault-level performance metrics including TVL, APY, and farm rewards APY. Returns time-series data showing the vault’s total value locked, yield rates, and reward rates over time.
getVaultMetricsHistory
View Code
5

Get Advanced Vault Allocation Info

Queries the vault’s allocation strategy showing how funds are distributed across different reserves with their target weights and current allocations.
getVaultAllocations
View Code
6

Get Advanced Vault Incentives Info

Retrieves detailed incentive information for the vault including delegated farm rewards, reserve farm incentives, and direct vault farm incentives along with comprehensive vault overview metrics.
getVaultIncentives
View Code
7

Vault Revenue Share

Earn revenue by deploying vaults with custom fee structures. Set performance fees on profits and management fees on assets under management.
vaultRevenueShare
View Code

Additional Resources

API Examples

SDK Examples