GET
/api/vaults/{vault}/rates/{timeframe}Get vault rate history
Base URL
https://api.storm.tgParameters
Path
vaultstringrequiredExample:
0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660timeframestring · enumrequiredAllowed:
"week" "month" "year"Example:
weekExamples
curl --request GET 'https://api.storm.tg/api/vaults/{vault}/rates/{timeframe}' \
--header 'Accept: application/json'const response = await fetch("https://api.storm.tg/api/vaults/{vault}/rates/{timeframe}", {
method: "GET",
headers: {
"Accept": "application/json"
},
});
console.log(response.status, await response.text());import requests
response = requests.request(
"GET",
"https://api.storm.tg/api/vaults/{vault}/rates/{timeframe}",
headers={"Accept":"application/json"},
timeout=30,
)
print(response.status_code, response.text)Responses
200Responseapplication/json
roiPercentagestring · int64required- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0historyobject[]requiredArray items · object
timestampstring · date-timerequiredExample:
2026-01-01T00:00:00Zvaluestring · int64required- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0balancestring · int64required- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0View example
[
{
"timestamp": "2026-01-01T00:00:00Z",
"value": "0",
"balance": "0"
}
]{
"roiPercentage": "0",
"history": [
{
"timestamp": "2026-01-01T00:00:00Z",
"value": "0",
"balance": "0"
}
]
}