curl --request GET \
--url https://api.kamino.finance/v3/earn/users/{userPubkey}/tokens/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/v3/earn/users/{userPubkey}/tokens/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/earn/users/{userPubkey}/tokens/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"
}Get wallet earnings and growth history for all tokens
Get earn history grouped by token mint across vaults and lending deposits for the requested obligation types. Mints with no buckets in the range are omitted.
curl --request GET \
--url https://api.kamino.finance/v3/earn/users/{userPubkey}/tokens/metrics/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/v3/earn/users/{userPubkey}/tokens/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/earn/users/{userPubkey}/tokens/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"
}Path Parameters
User wallet address
"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"
Query Parameters
Obligation types to include. Defaults to all seven types for compatibility. Earn products are Vanilla, Lending, and LendingFixedRate. Allowed values: Vanilla, Lending, LendingFixedRate, Multiply, MultiplyFixedRate, Leverage, LeverageFixedRate.
"Vanilla,Lending,LendingFixedRate"
Include private-credit vault positions, earnings, and activity alongside Earn vaults. Also accepts other truthy/falsy strings such as "1"/"0", "yes"/"no", "on"/"off".
true, false 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"
Response
OK
Show child attributes
Show child attributes