Get KLend reserve borrow APY and median staking APY history
curl --request GET \
--url https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/borrow-and-staking-apys/history/medianconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/borrow-and-staking-apys/history/median', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/borrow-and-staking-apys/history/median"
response = requests.get(url)
print(response.text)false[
{
"createdOn": "2023-10-17T15:00:06.009Z",
"borrowInterestApy": "0.027610992938039702",
"stakingApy": "0.066527842899023711405366628964490454572"
}
]{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Kamino Lend Yield
Get KLend reserve borrow APY and median staking APY history
Get historical borrow interest APY and median staking APY data for reserves that contain LST tokens with staking yield. Uses median staking APY values. Hourly and daily borrow APYs are means of raw snapshots in each UTC bucket.
GET
/
kamino-market
/
{marketPubkey}
/
reserves
/
{reservePubkey}
/
borrow-and-staking-apys
/
history
/
median
Get KLend reserve borrow APY and median staking APY history
curl --request GET \
--url https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/borrow-and-staking-apys/history/medianconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/borrow-and-staking-apys/history/median', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/borrow-and-staking-apys/history/median"
response = requests.get(url)
print(response.text)false[
{
"createdOn": "2023-10-17T15:00:06.009Z",
"borrowInterestApy": "0.027610992938039702",
"stakingApy": "0.066527842899023711405366628964490454572"
}
]{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Path Parameters
Kamino Lend market public key
Example:
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
Kamino Lend reserve public key
Example:
"FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM"
Query Parameters
Solana cluster environment
Available options:
mainnet-beta, devnet, localnet Example:
"mainnet-beta"
Date input (ISO 8601 string or epoch in ms)
Example:
"2024-01-01T00:00:00.000Z"
Date input (ISO 8601 string or epoch in ms)
Example:
"2024-01-01T00:00:00.000Z"