Sbhn_NPNormalised USDC Buying and Selling Pressure over Time (by Swap Count)
Updated 2022-10-21
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
›
⌄
with base1 as (select
date_trunc('day', block_timestamp) as day,
count(distinct(tx_hash)) as USDC_selling_swap_count,
sum(amount_in) as USDC_selling_volume
from ethereum.core.ez_dex_swaps
where symbol_in in ('USDC')
and amount_in > 0
and amount_in < 99999999
and day >= current_date - 90
group by 1),
base2 as (select
date_trunc('day', block_timestamp) as day,
count(distinct(tx_hash)) as USDC_buying_swap_count,
sum(amount_out) as USDC_buying_volume
from ethereum.core.ez_dex_swaps
where symbol_out in ('USDC')
and amount_out > 0
and amount_out < 99999999
and day >= '2022-08-15'
group by 1),
base3 as (select a.day,
case
when a.day < '2022-09-05' then 'Before Annoucement'
when a.day = '2022-09-05' then 'Binance USDC Conversion Annoucement'
when a.day > '2022-09-05' and a.day <= '2022-09-28' then 'Between Announcement and Implementation'
when a.day = '2022-09-29' then 'Binance USDC Conversion Implementation'
else 'After Implementation'
end as periods,
case
when a.day >= '2022-09-15' then 140000
else 0
end as post_USDC_merge_count,
case
when a.day >= '2022-09-15' then 7000000
Run a query to Download Data