use 30 day stats for perps
This commit is contained in:
parent
eb325ec7f9
commit
3f1801f5ab
|
@ -99,7 +99,7 @@ app.get("/perp", async (req, res) => {
|
||||||
avg("baseOraclePrice")::float AS "baseOraclePrice",
|
avg("baseOraclePrice")::float AS "baseOraclePrice",
|
||||||
min("time") AS "time"
|
min("time") AS "time"
|
||||||
FROM perp_market_stats
|
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"
|
GROUP BY "hourly", "name"
|
||||||
ORDER BY "hourly" ASC;`,
|
ORDER BY "hourly" ASC;`,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue