0-MIDtoken comp
Updated 2023-05-30
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 tab1 as (
select SYMBOL_IN
,sum(AMOUNT_IN) as "Volume To EUROC"
,count(distinct ORIGIN_FROM_ADDRESS) as "EUROC BUYERS"
,count(distinct TX_HASH) as "EUROC Buy Count"
from avalanche.core.ez_dex_swaps
where TOKEN_OUT=lower('0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD')
and BLOCK_TIMESTAMP>'2023-05-24'
and SYMBOL_IN='WAVAX'
group by 1
),
tab2 as (
select SYMBOL_OUT
,sum(AMOUNT_OUT) as "Volume From EUROC"
,count(distinct ORIGIN_FROM_ADDRESS) as "EUROC SELLRS"
,count(distinct TX_HASH) as "EUROC Sell Count"
from avalanche.core.ez_dex_swaps
where TOKEN_IN=lower('0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD')
and BLOCK_TIMESTAMP>'2023-05-24'
and SYMBOL_OUT='WAVAX'
group by 1
),
tab3 as (
select SYMBOL_IN
,sum(AMOUNT_IN) as "Volume To EUROC"
,count(distinct ORIGIN_FROM_ADDRESS) as "EUROC BUYERS"
,count(distinct TX_HASH) as "EUROC Buy Count"
from avalanche.core.ez_dex_swaps
where TOKEN_OUT=lower('0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD')
and BLOCK_TIMESTAMP>'2023-05-24'
and SYMBOL_IN='USDC'
group by 1
),
tab4 as (
select SYMBOL_OUT
,sum(AMOUNT_OUT) as "Volume From EUROC"
Run a query to Download Data