Skip to main content

Borrow & Supply APY Calculation

A reserve is a single asset lending pool within a market. All deposits of an asset enter the same reserve, and all borrowing draws from that pool. Variable rates are driven by utilization, the fraction of deposits currently borrowed:
As utilization increases, borrow rates rise. As utilization decreases, borrow rates fall. Supply APY is derived from borrower interest and depends on both the borrow rate and utilization:
Not all deposited capital is borrowed at any given time, so supply APY is always lower than the borrow rate. Higher utilization means more of the pool is earning interest, which increases lender yield. Reserves are isolated pools. The same asset in different markets has different borrowers, collateral, and risk profiles, and therefore different rates.
1

Fetch All Markets

Retrieve the list of all lending markets on Kamino.
The /v2/kamino-market endpoint returns all lending markets including SOL/BTC Market, JLP Market, Altcoins Market, and Prime Market.
2

Get Reserve APYs for Each Market

For each market, fetch the APY metrics for all reserves (USDC, SOL, wETH, etc.).
The /kamino-market/{pubkey}/reserves/metrics endpoint returns comprehensive metrics for each reserve including APYs, total deposits, and borrows.