Skip to content

Commit

Permalink
Merge pull request #34 from galacticcouncil/30dvol-fix
Browse files Browse the repository at this point in the history
Fix 30d volume on main
  • Loading branch information
green-jay authored Jul 9, 2024
2 parents 340ebfc + 33b47b2 commit 77bc374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queries/hydration-web/v1/stats/vol30d.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-- statsVol30d
SELECT
ROUND(SUM(volume_roll_24_usd)) as volume_usd
ROUND(SUM(volume_roll_24_usd)) / 2 as volume_usd
FROM (
SELECT
symbol,
asset_id,
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
Expand Down

0 comments on commit 77bc374

Please sign in to comment.