Skip to main content
GET
https://api.kamino.finance
/
kamino-market
/
{market-id}
/
rates
/
history
Rates History
curl --request GET \
  --url https://api.kamino.finance/kamino-market/{market-id}/rates/history
{
  "marketId": "<string>",
  "period": "<string>",
  "interval": "<string>",
  "reserves": [
    {
      "reserve": "<string>",
      "liquidityToken": "<string>",
      "data": [
        {
          "timestamp": "<string>",
          "supplyApy": "<string>",
          "borrowApy": "<string>",
          "utilization": "<string>",
          "totalSupplyUsd": "<string>",
          "totalBorrowUsd": "<string>"
        }
      ],
      "summary": {
        "minSupplyApy": "<string>",
        "maxSupplyApy": "<string>",
        "avgSupplyApy": "<string>",
        "minBorrowApy": "<string>",
        "maxBorrowApy": "<string>",
        "avgBorrowApy": "<string>",
        "avgUtilization": "<string>"
      }
    }
  ],
  "marketSummary": {
    "avgSupplyApy": "<string>",
    "avgBorrowApy": "<string>",
    "avgUtilization": "<string>",
    "totalSupplyUsdChange": "<string>",
    "totalBorrowUsdChange": "<string>"
  }
}

This endpoint returns historical APY data for all reserves in a lending market over a specified time period, useful for charting interest rate trends.

Path Parameters

market-id
string
required
The lending market ID to get rate history for

Query Parameters

env
string
default:"mainnet-beta"
The Solana network environment
period
string
default:"7d"
Time period for historical data (1d, 7d, 30d, 90d, 180d, 365d)
reserve
string
Specific reserve address to get history for (if not provided, returns all reserves)
interval
string
default:"1h"
Data point interval (15m, 1h, 4h, 1d)

Request Example

curl --request GET \
  --url https://api.kamino.finance/kamino-market/7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF/rates/history?env=mainnet-beta&period=30d&interval=1d

Response Example

{
  "marketId": "7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF",
  "period": "30d",
  "interval": "1d",
  "reserves": [
    {
      "reserve": "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
      "liquidityToken": "SOL",
      "data": [
        {
          "timestamp": "2024-01-01T00:00:00Z",
          "supplyApy": "0.0420",
          "borrowApy": "0.0615",
          "utilization": "0.6245",
          "totalSupplyUsd": "2654321.45",
          "totalBorrowUsd": "1657890.23"
        },
        {
          "timestamp": "2024-01-02T00:00:00Z",
          "supplyApy": "0.0425",
          "borrowApy": "0.0625",
          "utilization": "0.6412",
          "totalSupplyUsd": "2785432.15",
          "totalBorrowUsd": "1785621.45"
        }
      ],
      "summary": {
        "minSupplyApy": "0.0398",
        "maxSupplyApy": "0.0456",
        "avgSupplyApy": "0.0425",
        "minBorrowApy": "0.0587",
        "maxBorrowApy": "0.0678",
        "avgBorrowApy": "0.0625",
        "avgUtilization": "0.6327"
      }
    },
    {
      "reserve": "8PbodeaosQP19SjYFx855UMqWxH2HynZLdBXmsrbac36",
      "liquidityToken": "USDC",
      "data": [
        {
          "timestamp": "2024-01-01T00:00:00Z",
          "supplyApy": "0.0378",
          "borrowApy": "0.0587",
          "utilization": "0.6987",
          "totalSupplyUsd": "5432109.87",
          "totalBorrowUsd": "3795432.11"
        },
        {
          "timestamp": "2024-01-02T00:00:00Z",
          "supplyApy": "0.0385",
          "borrowApy": "0.0595",
          "utilization": "0.7051",
          "totalSupplyUsd": "5647821.46",
          "totalBorrowUsd": "3982134.57"
        }
      ],
      "summary": {
        "minSupplyApy": "0.0365",
        "maxSupplyApy": "0.0398",
        "avgSupplyApy": "0.0385",
        "minBorrowApy": "0.0567",
        "maxBorrowApy": "0.0612",
        "avgBorrowApy": "0.0595",
        "avgUtilization": "0.7019"
      }
    }
  ],
  "marketSummary": {
    "avgSupplyApy": "0.0405",
    "avgBorrowApy": "0.0610",
    "avgUtilization": "0.6673",
    "totalSupplyUsdChange": "+8.2%",
    "totalBorrowUsdChange": "+12.1%"
  }
}

Response Fields

marketId
string
The lending market ID
period
string
The requested time period
interval
string
The data point interval
reserves
array
Historical data for each reserve
marketSummary
object
Market-wide summary statistics