ZSaeddaily swap transactions
Updated 2023-02-11
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
26
27
28
29
›
⌄
select
BLOCK_TIMESTAMP::date as day,
sum(AMOUNT_IN) *-1 as eth_volume,
sum(AMOUNT_IN_USD)*-1 as usd_volume,
count(DISTINCT tx_hash) as num_tx,
count(DISTINCT ORIGIN_FROM_ADDRESS) as num_form_address,
count(DISTINCT ORIGIN_TO_ADDRESS) as num_to_address,
'Swap From ETH ' as category
from
ethereum.core.ez_dex_swaps
where
SYMBOL_IN = 'WETH'
group by
day
UNION
select
BLOCK_TIMESTAMP::date as day,
sum(AMOUNT_OUT) as eth_volume,
sum(AMOUNT_OUT_USD) as usd_volume,
count(DISTINCT tx_hash) as num_tx,
count(DISTINCT ORIGIN_FROM_ADDRESS) as num_form_address,
count(DISTINCT ORIGIN_TO_ADDRESS) as num_to_address,
'Swap TO ETH' as category
from
ethereum.core.ez_dex_swaps
where
SYMBOL_OUT = 'WETH'
group by
day
Run a query to Download Data