Pmisha-bmlMdxparaswap
Updated 2022-05-09
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
with t1 as (select
date_trunc('month',block_timestamp) as dt1,
sum (amount_usd) as swap_volume1
from ethereum.udm_events
where FROM_LABEL='paraswap'
and block_timestamp between '2021-01-01' and '2022-01-01'
group by 1),
t2 as (select
date_trunc('month',block_timestamp) as dt2,
sum (amount_usd) as swap_volume2
from ethereum.udm_events
where to_LABEL='paraswap'
and block_timestamp between '2021-01-01' and '2022-01-01'
group by 1)
select
t1.dt1 as dt,
swap_volume1+swap_volume2 as total_swap
from t1 inner join t2 on t1.dt1=t2.dt2
Run a query to Download Data