Skip to main content
GET
/
kvaults
/
vaults
/
{pubkey}
/
allocation-volume
/
history
Get historical KVault allocation volume
curl --request GET \
  --url https://api.kamino.finance/kvaults/vaults/{pubkey}/allocation-volume/history
const options = {method: 'GET'};

fetch('https://api.kamino.finance/kvaults/vaults/{pubkey}/allocation-volume/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/{pubkey}/allocation-volume/history"

response = requests.get(url)

print(response.text)
false
[
  {
    "timestamp": "2023-12-25",
    "volumeUsd": "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"
}
]
}
{
"error": "An internal error occurred"
}

Path Parameters

pubkey
string
required

Valid base58-encoded address

Example:

"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"

Query Parameters

start

Date input (ISO 8601 string or epoch in ms)

Example:

"2024-01-01T00:00:00.000Z"

end

Date input (ISO 8601 string or epoch in ms)

Example:

"2024-01-01T00:00:00.000Z"

Response

OK

timestamp
string<date>
required

Timestamp of the investment volume data point

volumeUsd
string
required

Investment volume in USD

Example:

"1234.56789"