Skip to content

Commit

Permalink
Merge pull request #26 from galacticcouncil/fix-old-volumes
Browse files Browse the repository at this point in the history
Fix old volumes
  • Loading branch information
green-jay authored Feb 22, 2024
2 parents d177df4 + 6a29a81 commit 2f2e4c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion queries/defillama/v1/volume.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ SELECT
FROM (
SELECT
symbol,
volume_roll_24_usd,
volume_roll_24_usd,
timestamp,
ROW_NUMBER() OVER (
PARTITION BY symbol
ORDER BY timestamp DESC
Expand All @@ -30,3 +31,5 @@ FROM (
) a
WHERE
rn = 1
AND
timestamp > now () - interval '1d'
3 changes: 3 additions & 0 deletions queries/hydradx-ui/v2/stats/volume.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ FROM (
symbol,
asset_id,
volume_roll_24_usd,
timestamp,
ROW_NUMBER() OVER (
PARTITION BY symbol
ORDER BY timestamp DESC
Expand All @@ -26,4 +27,6 @@ FROM (
) a
WHERE
rn = 1
AND
timestamp > now () - interval '1d'
GROUP BY 1

0 comments on commit 2f2e4c7

Please sign in to comment.