fix stats query

This commit is contained in:
Tyler Shipe 2021-08-23 14:42:57 -04:00
parent c04929ff35
commit 800b28e357
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ app.get("/spot", async (req, res) => {
avg("totalDeposits")::float AS "totalDeposits",
avg("totalBorrows")::float AS "totalBorrows",
avg("utilization")::float AS "utilization",
avg("depositInterest")::float AS "depositInterest",
avg("borrowInterest")::float AS "borrowInterest",
avg("depositRate")::float AS "depositRate",
avg("borrowRate")::float AS "borrowRate",
min("time") AS "time"
FROM spot_market_stats
WHERE time > current_date - interval '90' day AND "mangoGroup" = :mangoGroup