A valid request URL is required to generate request examples{
"data": {
"slug": "stable-vault",
"metric": "share_price",
"unit": "USDC",
"from": 1783678901,
"to": 1791454901,
"points": [
{
"t": 1788048000,
"v": "1.000000"
},
{
"t": 1788825600,
"v": "0.999999"
},
{
"t": 1789084800,
"v": "1.000000"
},
{
"t": 1791244800,
"v": "1.002024"
},
{
"t": 1791331200,
"v": "1.002103"
},
{
"t": 1791417600,
"v": "1.002182"
}
]
},
"asOf": 1791454901
}Vaults
Get vault history
Share price (metric: "share_price") or TVL (metric: "tvl") history of one vault, in its deposit asset.
- Each point is the last value recorded on a UTC day:
tis the day’s start in Unix seconds andvthe value as a decimal string. Days without a change have no point. Points are in ascending order. todefaults to now andfromto 90 days beforeto.frommust be beforeto, and the range may be at most 366 days.- Timestamps before 2024-01-01 or more than one day in the future are rejected.
- A legacy slug resolves to its canonical vault, and the response carries the canonical slug.
POST
/
vaults.history
A valid request URL is required to generate request examples{
"data": {
"slug": "stable-vault",
"metric": "share_price",
"unit": "USDC",
"from": 1783678901,
"to": 1791454901,
"points": [
{
"t": 1788048000,
"v": "1.000000"
},
{
"t": 1788825600,
"v": "0.999999"
},
{
"t": 1789084800,
"v": "1.000000"
},
{
"t": 1791244800,
"v": "1.002024"
},
{
"t": 1791331200,
"v": "1.002103"
},
{
"t": 1791417600,
"v": "1.002182"
}
]
},
"asOf": 1791454901
}Authorizations
The client's own API key (kmi_<id>_<secret>), issued by Kamui. A missing, malformed, unknown, revoked or expired key answers 401 unauthorized.
Headers
Your id for this request: 1 to 128 letters, digits, ., _, : or -. It is echoed in the response. Any other value is replaced with a new UUID.
Pattern:
^[A-Za-z0-9._:-]{1,128}$Body
application/json
Vault slug, matched exactly: lowercase letters, digits and single hyphens (stable-vault). Case and whitespace count, so Stable-Vault and stable-vault answer 400. A legacy slug works; the response carries the canonical one.
Required string length:
1 - 64Pattern:
^[a-z0-9]+(?:-[a-z0-9]+)*$Available options:
share_price, tvl Required range:
1704067200 <= x <= 9007199254740991Required range:
1704067200 <= x <= 9007199254740991