You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the treasury there are multiple data collection points to account for, should be cached every day. Everything should be converted to USDC for its rate. See yam treasury assets to understand where is it located at, and be able to pull it to then save it into the database and serve it on the endpoints.
Endpoints
/treasury
Data should be fetched and saved on the database every 1 day at 01:00 AM UTC.
Should return:
One object.
{
timestamp: TIMESTAMP, // time last saved when the data was collected
values: {
assets: {
...
"USDC": 400000,
"WETH": 600000,
"UMA": 100000,
...
},
total: 1100000 // total combined assets value when the data was collected
}
}
/treasury-history
Data should be fetched and saved on the database every 1 day at 01:00 AM UTC.
Should return:
Multiple objects and each is an average of 7 days data.
Maximum objects returned are always the past 52 objects.
Description
For the treasury there are multiple data collection points to account for, should be cached every day. Everything should be converted to USDC for its rate. See yam treasury assets to understand where is it located at, and be able to pull it to then save it into the database and serve it on the endpoints.
Endpoints
/treasury
/treasury-history
Follow the
.env.example
to add or use secrets if needed.Requirements
/treasury
endpoint calls.The text was updated successfully, but these errors were encountered: