increase spot stat time period from 1hr avg to 4hr avg to reduce response time

This commit is contained in:
Tyler Shipe 2021-12-02 23:11:24 -05:00
parent 4d6c72ca81
commit 8078185936
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ app.get("/spot", async (req, res) => {
}
const stats = await sequelize.query(
`SELECT time_bucket('60 minutes', time) AS "hourly",
`SELECT time_bucket('4 hours', time) AS "hourly",
"name",
avg("totalDeposits")::float AS "totalDeposits",
avg("totalBorrows")::float AS "totalBorrows",