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
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
Deposit reserve public key
Borrow reserve public key
Position type tagExample: Multiply or Leverage
Average leverage ratio across all positionsExample: 2.45 means 2.45x leverage
Total amount deposited across all positions in token units
Total deposited value in USD
Total amount borrowed across all positions in token units
Total borrowed value in USD
Total number of obligations (positions) for this reserve pair
Total Value Locked in USD for this reserve pair
Last update timestamp (ISO 8601 format)
Error Responses
Error message for internal server failure (500)Example: "An internal error occurred"