Get collateral reserves with borrowable reserves
curl --request GET \
--url https://api.kamino.finance/markets/collateral-reservesconst options = {method: 'GET'};
fetch('https://api.kamino.finance/markets/collateral-reserves', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/markets/collateral-reserves"
response = requests.get(url)
print(response.text)false{
"collateralReserves": [
{
"lendingMarket": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"lendingMarketName": "<string>",
"name": "<string>",
"description": "<string>",
"collateralReserve": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"collateralMint": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"borrowReserves": [
"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"
],
"debtCategory": "Stablecoin assets",
"debtTag": "stables",
"collateralCategory": "Crypto assets",
"collateralTag": "crypto",
"collateralBackingDebtUsd": "1234.56789",
"debtAgainstCollateralUsd": "1234.56789",
"sizeUsd": "1234.56789",
"slugs": [
"<string>"
],
"hidden": false,
"borrowReserveTerms": [
{
"reserve": "d4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q",
"elevationGroup": 2,
"maxLtv": "0.87",
"liquidationLtv": "0.92",
"borrowFactor": "1"
}
]
}
]
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Kamino Lend Markets
Get collateral reserves with borrowable reserves
Derive one Borrow market row per collateral reserve and debt category from each configured Kamino Lend market.
GET
/
markets
/
collateral-reserves
Get collateral reserves with borrowable reserves
curl --request GET \
--url https://api.kamino.finance/markets/collateral-reservesconst options = {method: 'GET'};
fetch('https://api.kamino.finance/markets/collateral-reserves', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/markets/collateral-reserves"
response = requests.get(url)
print(response.text)false{
"collateralReserves": [
{
"lendingMarket": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"lendingMarketName": "<string>",
"name": "<string>",
"description": "<string>",
"collateralReserve": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"collateralMint": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"borrowReserves": [
"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"
],
"debtCategory": "Stablecoin assets",
"debtTag": "stables",
"collateralCategory": "Crypto assets",
"collateralTag": "crypto",
"collateralBackingDebtUsd": "1234.56789",
"debtAgainstCollateralUsd": "1234.56789",
"sizeUsd": "1234.56789",
"slugs": [
"<string>"
],
"hidden": false,
"borrowReserveTerms": [
{
"reserve": "d4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q",
"elevationGroup": 2,
"maxLtv": "0.87",
"liquidationLtv": "0.92",
"borrowFactor": "1"
}
]
}
]
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Query Parameters
Collateral reserve slug or alias
Example:
"jitosol-sol"
Lending market public key
Example:
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
Collateral reserve public key
Example:
"FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM"
KLend program ID
Example:
"KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
Response
OK
Show child attributes
Show child attributes