amir007-Q63RX1ETH - DEX Platforms
Updated 2022-09-17
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
with swap_eth as
(
select block_timestamp::date as date
, platform
, symbol_in
, symbol_out
, amount_in_usd
, amount_out_usd
from ethereum.core.ez_dex_swaps
where block_timestamp between '2021-01-01' and '2022-09-30'
and event_name = 'Swap'
and (symbol_in = 'WETH' or symbol_out = 'WETH')
)
select date_trunc('month', date) as "Month"
, platform as "DEX"
, sum(amount_in_usd) as "Swap Volume ($)"
, sum(amount_out_usd) as sum_amount_out_usd
from swap_eth
group by 1, 2
order by 1
Run a query to Download Data