Get historical metrics for multiple KVaults
curl --request GET \
--url https://api.kamino.finance/kvaults/vaults/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kvaults/vaults/metrics/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kvaults/vaults/metrics/history"
response = requests.get(url)
print(response.text)false{}{
"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"
}
]
}{
"error": "An internal error occurred"
}Kamino Earn Vaults
Get historical metrics for multiple KVaults
Get historical Kamino Earn Vault metrics for multiple vaults between an optional range of dates. The response is keyed by vault public key; unknown vaults are omitted.
GET
/
kvaults
/
vaults
/
metrics
/
history
Get historical metrics for multiple KVaults
curl --request GET \
--url https://api.kamino.finance/kvaults/vaults/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kvaults/vaults/metrics/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kvaults/vaults/metrics/history"
response = requests.get(url)
print(response.text)false{}{
"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"
}
]
}{
"error": "An internal error occurred"
}Query Parameters
Start date of the range (defaults to Unix epoch). Accepts ISO string or epoch in ms.
Example:
"1970-01-01T00:00:00.000Z"
End date of the range (defaults to current time). Accepts ISO string or epoch in ms.
Example:
"2025-01-01T00:00:00.000Z"
KVault public keys, provided as comma-separated or repeated query parameters (max 25)
Example:
"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"
Response
OK
Vault metrics time series keyed by vault public key. Unknown vaults are omitted.
Show child attributes
Show child attributes