Get KLend reserve history
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"
}Market Data
Get KLend reserve history
Get historical metrics for a specific reserve in a Kamino Lending market over a specified time range with configurable frequency (minute, hour, or day).
GET
/
kamino-market
/
{marketPubkey}
/
reserves
/
{reservePubkey}
/
metrics
/
history
Get KLend reserve history
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
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"
Frequency of the snapshots
Available options:
hour, day Example:
"hour"
Response
OK