Skip to main content
GET
https://api.kamino.finance
/
kamino-market
/
{pubkey}
/
leverage
/
metrics
Leverage/Multiply Metrics
curl --request GET \
  --url https://api.kamino.finance/kamino-market/{pubkey}/leverage/metrics
{
  "depositReserve": "<string>",
  "borrowReserve": "<string>",
  "tag": "<string>",
  "avgLeverage": "<string>",
  "totalDeposited": "<string>",
  "totalDepositedUsd": "<string>",
  "totalBorrowed": "<string>",
  "totalBorrowedUsd": "<string>",
  "totalObligations": "<string>",
  "tvl": "<string>",
  "updatedOn": "<string>",
  "error": "<string>"
}

This endpoint retrieves aggregated metrics for all leverage and multiply positions in a Kamino Lending market, including average leverage, total borrowed, total deposited, and number of obligations.

Path Parameters

pubkey
string
required
Market public keyExample: 7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF

Query Parameters

env
string
default:"mainnet-beta"
Solana cluster environmentOptions: mainnet-beta, devnet, localnet

Request Example

curl --request GET \
  --url https://api.kamino.finance/kamino-market/7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF/leverage/metrics?env=mainnet-beta

Response Example

[
  {
    "depositReserve": "FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM",
    "borrowReserve": "8PbodeaosQP19SjYFx855UMqWxH2HynZLdBXmsrbac36",
    "tag": "Multiply",
    "avgLeverage": "2.45",
    "totalDeposited": "125000.50",
    "totalDepositedUsd": "27125055.25",
    "totalBorrowed": "182500.75",
    "totalBorrowedUsd": "39562665.38",
    "totalObligations": "543",
    "tvl": "66687720.63",
    "updatedOn": "2024-01-15T14:30:00Z"
  },
  {
    "depositReserve": "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
    "borrowReserve": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "tag": "Leverage",
    "avgLeverage": "3.12",
    "totalDeposited": "98500.25",
    "totalDepositedUsd": "21365054.25",
    "totalBorrowed": "307062.78",
    "totalBorrowedUsd": "66599027.83",
    "totalObligations": "421",
    "tvl": "87964082.08",
    "updatedOn": "2024-01-15T14:30:00Z"
  }
]

Response Fields

depositReserve
string
required
Deposit reserve public key
borrowReserve
string
required
Borrow reserve public key
tag
string
required
Position type tagExample: Multiply or Leverage
avgLeverage
string
required
Average leverage ratio across all positionsExample: 2.45 means 2.45x leverage
totalDeposited
string
required
Total amount deposited across all positions in token units
totalDepositedUsd
string
required
Total deposited value in USD
totalBorrowed
string
required
Total amount borrowed across all positions in token units
totalBorrowedUsd
string
required
Total borrowed value in USD
totalObligations
string
required
Total number of obligations (positions) for this reserve pair
tvl
string
required
Total Value Locked in USD for this reserve pair
updatedOn
string
required
Last update timestamp (ISO 8601 format)

Error Responses

error
string
Error message for internal server failure (500)Example: "An internal error occurred"