Abolfazl_771025Swap actiiy
Updated 2023-05-15
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
30
31
32
33
34
35
36
›
⌄
select
date_trunc('week',block_timestamp) as date,
'Shib' as token,
count(DISTINCT tx_hash) as swap_count,
count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
from ethereum.core.ez_dex_swaps
where (symbol_in like 'SHIB' or Symbol_out like 'SHIB')
group by 1,2
union
select
date_trunc('week',block_timestamp) as date,
'Pepe' as token,
count(DISTINCT tx_hash) as swap_count,
count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
from ethereum.core.ez_dex_swaps
where (symbol_in like 'PEPE' or Symbol_out like 'PEPE')
group by 1,2
union
select
date_trunc('week',block_timestamp) as date,
'Elon' as token,
count(DISTINCT tx_hash) as swap_count,
count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
from ethereum.core.ez_dex_swaps
where (symbol_in like 'ELON' or Symbol_out like 'ELON')
group by 1,2
union
select
date_trunc('week',block_timestamp) as date,
'Chad' as token,
count(DISTINCT tx_hash) as swap_count,
count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
Run a query to Download Data