Skip to content

Commit

Permalink
fix volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
green-jay committed Feb 21, 2024
1 parent d177df4 commit 6a29a81
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 6a29a81

Please sign in to comment.