From 3f1801f5ab04b430c9401a272dd9732af64c6ef6 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Mon, 6 Sep 2021 13:03:39 -0400 Subject: [PATCH] use 30 day stats for perps --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a4995b4..b4e1093 100644 --- a/src/index.ts +++ b/src/index.ts @@ -99,7 +99,7 @@ app.get("/perp", async (req, res) => { avg("baseOraclePrice")::float AS "baseOraclePrice", min("time") AS "time" FROM perp_market_stats - WHERE time > current_date - interval '90' day AND "mangoGroup" = :mangoGroup + WHERE time > current_date - interval '30' day AND "mangoGroup" = :mangoGroup GROUP BY "hourly", "name" ORDER BY "hourly" ASC;`, {