saeedmznMetamask vs. Other Platforms - avg volume
Updated 2022-06-25Copy Reference Fork
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 metamask as (
select
sum (zeroifnull(amount_usd)) as Volume,
avg(zeroifnull(amount_usd)) as AVG_Volume
from ethereum.core.ez_token_transfers
where origin_to_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C')
and block_timestamp::date >= '2021-01-01'
and block_timestamp::date not in ('2021-08-18','2021-10-13','2021-07-24','2021-11-17','2021-12-03','2022-04-26')
and HAS_PRICE = 'true'
and origin_function_signature ='0x5f575529'
-- group by 1
),
uni_sushi as (
select
platform,
sum (zeroifnull(amount_in_usd)) as Volume,
avg(zeroifnull(amount_in_usd)) as AVG_Volume
from ethereum.core.ez_dex_swaps
where block_timestamp >='2021-01-01'
group by 1),
one_inch as (
select
sum (zeroifnull(amount_usd)) as Volume,
avg(zeroifnull(amount_usd)) as AVG_Volume
from ethereum.core.ez_token_transfers
where origin_to_address = lower('0x11111254369792b2Ca5d084aB5eEA397cA8fa48B')
and block_timestamp::date >= '2021-01-01'
and HAS_PRICE = 'true'
-- group by 1
),
aLL_ as (select 'metamask' as platform , Volume , AVG_Volume from metamask
UNION
select platform , Volume , AVG_Volume from uni_sushi
UNION
select '1inch' as platform , Volume , AVG_Volume from one_inch
Run a query to Download Data