cheeyoung-kekAlogrand swap
Updated 2022-07-07
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
›
⌄
with
dex_address as (
select distinct address,
label
from algorand.labels
where label_type = 'dex' and label not like '%group%'
),
dex_swap as (
select
block_timestamp,
tx_id,
sender,
receiver,
amount,
x.receiver as address,
label as dex
from algorand.payment_transaction x join dex_address y on x.receiver=y.address
where block_timestamp >='2022-05-01' and block_timestamp <'2022-06-30'
)
select
trunc(block_timestamp,'day') as date,
case when date>='2022-05-01' and date <'2022-05-30' then 'May transaction'
else 'June_transaction' end as "May Vs June Transaction",
count (distinct dex_transfers.address) as unique_wallet,
count(tx_id) as transactions,
sum(amount) as volume
from dex_transfers join dex_address on dex_transfers.address= dex_address.address
group by 1
order by 1 asc
Run a query to Download Data