Skip to main content

Reading Market Data

Retrieve market metrics, reserve information, and TVL data using the Kamino SDK and API.
Historical market data is only available via the API.
1

Get Market Info

Retrieves real-time market-wide metrics including total deposits and borrows TVL across all reserves.
Using the SDK requires a private RPC connection or the public rate-limited RPC endpoint.
getMarketInfo
View Code
2

Get Reserve Info

Queries detailed information for all reserves in the market including deposit/borrow TVL, APY rates, and utilization ratios.
getReserveInfo
A token can have several reserves: one variable-rate reserve plus fixed-rate ones, so each row shows its kind. Fixed-rate APYs depend on the slot duration passed to KaminoMarket.load. A hard-coded value such as 400 ms shows them at about half their real rate, because mainnet slots are closer to 210 ms.
View Code
3

Get Historical Reserve APY

Fetch historical supply APY and borrow APY data for a specific reserve over time.
getHistoricalReserveAPY
View Code

Additional Resources

API Examples

SDK Examples