MLDZMNETH.swap
Updated 2022-11-23
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
›
⌄
select
BLOCK_TIMESTAMP::date as day,
'Swap from ETH' as swap_type,
count(distinct tx_hash) as no_transfer,
count(distinct SENDER) as no_sender,
sum(AMOUNT_IN) as total_volume,
avg(AMOUNT_IN) as avg_volume,
sum(total_volume) over (order by day) as cum_volume
from ethereum.core.ez_dex_swaps
where BLOCK_TIMESTAMP>='2022-11-01'
and SYMBOL_IN='WETH'
group by 1
union all
select
BLOCK_TIMESTAMP::date as day,
'Swap to ETH' as swap_type,
count(distinct tx_hash) as no_transfer,
count(distinct SENDER) as no_sender,
sum(AMOUNT_out) as total_volume,
avg(AMOUNT_out) as avg_volume,
sum(total_volume) over (order by day) as cum_volume
from ethereum.core.ez_dex_swaps
where BLOCK_TIMESTAMP>='2022-11-01'
and SYMBOL_OUT='WETH'
group by 1
Run a query to Download Data