curl --request GET \
--url https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/metrics/history', 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}/metrics/history"
response = requests.get(url)
print(response.text)false{
"error": "An internal error occurred"
}Get KLend reserve history
Get historical metrics for a specific reserve in a Kamino Lending market over a specified time range with configurable frequency (hour or day). Without a frequency, ranges shorter than 32 days are hourly and longer ranges are daily. APYs, amounts and capped available liquidity are means of raw snapshots in each UTC bucket. Other metrics retain the last snapshot.
curl --request GET \
--url https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kamino-market/{marketPubkey}/reserves/{reservePubkey}/metrics/history', 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}/metrics/history"
response = requests.get(url)
print(response.text)false{
"error": "An internal error occurred"
}Path Parameters
Kamino Lend market public key
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
Kamino Lend reserve public key
"FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM"
Query Parameters
Solana cluster environment
mainnet-beta, devnet, localnet "mainnet-beta"
Date input (ISO 8601 string or epoch in ms)
"2024-01-01T00:00:00.000Z"
Date input (ISO 8601 string or epoch in ms)
"2024-01-01T00:00:00.000Z"
Frequency of the snapshots. Defaults to hour for ranges shorter than 32 days and day otherwise.
hour, day "hour"
Response
OK