increase spot stat time period from 1hr avg to 4hr avg to reduce response time
This commit is contained in:
parent
4d6c72ca81
commit
8078185936
|
@ -18,7 +18,7 @@ app.get("/spot", async (req, res) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const stats = await sequelize.query(
|
const stats = await sequelize.query(
|
||||||
`SELECT time_bucket('60 minutes', time) AS "hourly",
|
`SELECT time_bucket('4 hours', time) AS "hourly",
|
||||||
"name",
|
"name",
|
||||||
avg("totalDeposits")::float AS "totalDeposits",
|
avg("totalDeposits")::float AS "totalDeposits",
|
||||||
avg("totalBorrows")::float AS "totalBorrows",
|
avg("totalBorrows")::float AS "totalBorrows",
|
||||||
|
|
Loading…
Reference in New Issue