MLDZMNpools1
Updated 2023-05-03
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
-- forked from aseets2 @ https://flipsidecrypto.xyz/edit/queries/b3865d69-7a1b-4dab-ab2c-396a06676474
select
date_trunc('week',block_timestamp) as date,
POOL_NAME,
count(distinct tx_hash) as no_swaps,
count(distinct ORIGIN_FROM_ADDRESS) as no_trader,
sum(AMOUNT_OUT_USD) as volume_usd,
avg(AMOUNT_OUT_USD) as avg_volume_usd,
median(AMOUNT_OUT_USD) as median_volume_usd
from avalanche.core.ez_dex_swaps
where block_timestamp>='2023-01-01'
and POOL_NAME is not null
group by 1,2 having volume_usd is not null
QUALIFY DENSE_RANK() OVER (partition by date ORDER BY volume_usd DESC) <= 5
Run a query to Download Data