NavidCopy of Copy of Untitled Query
Updated 2022-12-05Copy 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
›
⌄
with prices as (
select
date(timestamp) as day,
avg(price_usd) as priceusd
from
flow.core.fact_prices
where
token='Flow'
group by
1
), daily_stat as (
select
case
when date(block_timestamp) between '2022-11-19' and '2022-11-26' then 'During Thanksgiving Days'
else 'Other Days'
end as day_label,
*
from
flow.core.ez_nft_sales
where
nft_collection = 'A.e4cf4bdc1751c65d.AllDay' and TX_SUCCEEDED
)
select
day_label,
count(distinct SELLER) as "Sellers Count",
count(distinct BUYER) as "Buyers Count",
count(distinct TX_ID) as "Sales Count",
sum(PRICE*priceusd) as "Volume",
"Sellers Count"/"Buyers Count" as "Relative Strength of Buyers to Sellers"
from
daily_stat s join prices p on date(block_timestamp)=p.day
group by 1
Run a query to Download Data