adriaparcerisasSushiswap proportion DEX volume
Updated 2022-02-14
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
›
⌄
WITH
sushiswap_v as (
select
trunc(block_timestamp,'day') as date,
sum(amount_usd) as volume
from ethereum.dex_swaps
where platform='sushiswap' and block_timestamp >= CURRENT_DATE - 60 and amount_usd <10000000000
GROUP BY 1
order by 1 asc
),
others_v as (
select
trunc(block_timestamp,'day') as date,
sum(amount_usd) as volume
from ethereum.dex_swaps
where block_timestamp >= CURRENT_DATE - 60 and amount_usd <10000000000
GROUP BY 1
order by 1 asc
)
SELECT
x.date,
x.volume/y.volume as sushiswap_proportion,
1-sushiswap_proportion as other_dex_proportion
from sushiswap_v x, others_v y where x.date = y.date
order by 1 asc
Run a query to Download Data