farokhtiabdaily amount of tokens swapped
Updated 2022-09-24
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
›
⌄
with initial_data_one as
(
select
block_timestamp::date as day,
sum(amount_in_usd) as total_usd_amount,
count(distinct sender) as number_of_depositors,
count(distinct tx_hash) as number_of_transactions,
symbol_in
from ethereum.sushi.ez_swaps
where day >= '2022-09-15'
group by day, symbol_in
),
initial_data_two as
(
select
block_timestamp::date as day,
sum(amount_out_usd) as total_usd_amount,
count(distinct sender) as number_of_depositors,
count(distinct tx_hash) as number_of_transactions,
symbol_out
from ethereum.sushi.ez_swaps
where day >= '2022-09-15'
group by day, symbol_out
)
select 'to' as status, *, concat(status, ' ', symbol_in) as color from initial_data_one
UNION
select 'from' as status, *, concat(status, ' ', symbol_out) as color from initial_data_two
Run a query to Download Data