0xHaM-dThe average volume by daily
Updated 2022-09-13Copy 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 price as (
select
hour::date as date_,
avg(price) as price
from flipside_prod_db.ethereum_core.fact_hourly_token_prices
where token_address = lower('0xD31a59c85aE9D8edEFeC411D448f90841571b89c')
and hour::date >= '2022-05-09'
group by 1
)
select
a.block_timestamp::date as date,
'Solana' as blockchain,
count(DISTINCT PURCHASER) as unique_buyer,
sum(unique_buyer) over (order by date asc) as cum_user,
sum(SALES_AMOUNT * price) as volume
from solana.core.fact_nft_sales a join price b on a.block_timestamp::date = b.date_
where block_timestamp::date >= '2022-05-09'
group by 1
UNION
select
block_timestamp::date as date,
'Flow' as blockchain,
count(DISTINCT BUYER) as unique_buyer,
sum(unique_buyer) over (order by date asc) as cum_user,
sum(price) as volume
from flow.core.fact_nft_sales
where block_timestamp::date >= '2022-05-09'
group by 1
UNION
select
block_timestamp::date as date,
'Ethereum' as blockchain,
Run a query to Download Data