From 33b47b2916037d0c1c6fc941778c2d7aacbc6743 Mon Sep 17 00:00:00 2001 From: green-jay Date: Mon, 8 Jul 2024 09:25:40 +0200 Subject: [PATCH] Fix 30d volume on main --- queries/hydration-web/v1/stats/vol30d.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/hydration-web/v1/stats/vol30d.sql b/queries/hydration-web/v1/stats/vol30d.sql index c92387d..1ef8594 100644 --- a/queries/hydration-web/v1/stats/vol30d.sql +++ b/queries/hydration-web/v1/stats/vol30d.sql @@ -1,6 +1,6 @@ -- statsVol30d SELECT - ROUND(SUM(volume_roll_24_usd)) as volume_usd + ROUND(SUM(volume_roll_24_usd)) / 2 as volume_usd FROM ( SELECT symbol, @@ -8,7 +8,7 @@ FROM ( volume_roll_24_usd, timestamp, ROW_NUMBER() OVER ( - PARTITION BY symbol, timestamp::date + PARTITION BY asset_id, timestamp::date ORDER BY timestamp DESC ) AS rn FROM