Get a KLend deposit position history
curl --request GET \
--url https://api.kamino.finance/v3/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/deposits/{reservePubkey}/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/v3/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/deposits/{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/v3/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/deposits/{reservePubkey}/metrics/history"
response = requests.get(url)
print(response.text)false[
{
"createdOn": "2023-11-07T05:31:56Z",
"tokenAmount": "1234.56789",
"usdAmount": "1234.56789",
"apy": "1234.56789",
"cumulativeInterestEarned": "1234.56789",
"cumulativeInterestEarnedUsd": "1234.56789",
"cumulativeInterestEarnedSol": "1234.56789"
}
]{
"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"
}
]
}{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Kamino Lend Yield
Get a KLend deposit position history
Get value, APY, and lifetime cumulative interest snapshots for one reserve deposit in an obligation.
GET
/
v3
/
kamino-market
/
{marketPubkey}
/
obligations
/
{obligationPubkey}
/
deposits
/
{reservePubkey}
/
metrics
/
history
Get a KLend deposit position history
curl --request GET \
--url https://api.kamino.finance/v3/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/deposits/{reservePubkey}/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/v3/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/deposits/{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/v3/kamino-market/{marketPubkey}/obligations/{obligationPubkey}/deposits/{reservePubkey}/metrics/history"
response = requests.get(url)
print(response.text)false[
{
"createdOn": "2023-11-07T05:31:56Z",
"tokenAmount": "1234.56789",
"usdAmount": "1234.56789",
"apy": "1234.56789",
"cumulativeInterestEarned": "1234.56789",
"cumulativeInterestEarnedUsd": "1234.56789",
"cumulativeInterestEarnedSol": "1234.56789"
}
]{
"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"
}
]
}{
"metadata": "Account could not be found"
}{
"error": "An internal error occurred"
}Path Parameters
Kamino Lend market public key
Example:
"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"
Kamino Lend obligation public key
Example:
"63QrAB1okxCc4FpsgcKYHjYTp1ua8ch6mLReyKRdc22o"
Kamino Lend reserve public key
Example:
"FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM"
Query Parameters
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"
Response
OK
Snapshot timestamp
Deposited liquidity token amount
Example:
"1234.56789"
USD value of the deposit
Example:
"1234.56789"
Supply APY at the snapshot
Example:
"1234.56789"
Lifetime interest earned in liquidity tokens
Example:
"1234.56789"
Lifetime interest earned in USD
Example:
"1234.56789"
Lifetime interest earned in SOL
Example:
"1234.56789"