binhachonCelsius Swaps - #2
Updated 2022-06-20
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with celsius_wallets as (
select
*
from flipside_prod_db.crosschain.address_labels
where address_name ilike '%celsius%'
),
swap_activity as (
select
*
from flipside_prod_db.crosschain.ez_swaps
where origin_from_address in (select address from celsius_wallets)
)
select
symbol_in,
symbol_out,
count(*) as number_of_swaps,
sum(amount_in_usd + amount_out_usd) / 2 as volume
from swap_activity
group by 1, 2
Run a query to Download Data