Get KLend Market metrics history
curl --request GET \
--url https://api.kamino.finance/kamino-market/{pubkey}/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kamino-market/{pubkey}/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/{pubkey}/metrics/history"
response = requests.get(url)
print(response.text)false[
{
"market": "9pMFoVgsG2cNiUCSBEE69iWFN7c1bz9gu9TtPeXkAMTs",
"timestamp": "2023-06-29T15:15:26.464Z",
"metrics": {
"borrowTVL": "1.000099969999999979181237244607594483571",
"depositTVL": "8.357187000999999979181237244607594483571",
"obligations": 38
}
}
]{
"error": "An internal error occurred"
}Kamino Lend Markets
Get KLend Market metrics history
Get historical metrics (TVL and number of obligations) for a Kamino Lending market over a specified time range.
GET
/
kamino-market
/
{pubkey}
/
metrics
/
history
Get KLend Market metrics history
curl --request GET \
--url https://api.kamino.finance/kamino-market/{pubkey}/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kamino-market/{pubkey}/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/{pubkey}/metrics/history"
response = requests.get(url)
print(response.text)false[
{
"market": "9pMFoVgsG2cNiUCSBEE69iWFN7c1bz9gu9TtPeXkAMTs",
"timestamp": "2023-06-29T15:15:26.464Z",
"metrics": {
"borrowTVL": "1.000099969999999979181237244607594483571",
"depositTVL": "8.357187000999999979181237244607594483571",
"obligations": 38
}
}
]{
"error": "An internal error occurred"
}Path Parameters
Market public key
Example:
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
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"