Josh956Uniswap POOL eth stats & stuff
Updated 2023-05-15
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
origin as (
select
origin_from_address,
pool_name,
min(block_timestamp)as min_date
from ethereum.core.ez_dex_swaps
where platform like 'uniswap%'
group by 1,2
),
poolname as (
select pool_name, count(*) as ct
from ethereum.core.ez_dex_swaps
where platform like 'uniswap%'
group by 1
order by 2 DESC
limit 6
),
newusers as (
select
date_trunc('month', min_date) as month, pool_name,
count(distinct origin_from_address) as "new users"
from origin
where min_date > '2022-05-01'
group by 1,2
),
stats as (
select
date_trunc('month', block_timestamp) as month, pool_name,
count(distinct tx_hash) as "TX Count",
count(distinct origin_from_address) as users,
sum(amount_in_usd) as "volume usd",
avg(amount_in_usd) as "average volume usd",
Run a query to Download Data