Nige7777Copy of Price of DeadHeads
Updated 2021-08-21
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
select distinct
avg(price_usd) over (partition by date_trunc('day',block_timestamp ) order by date_trunc('day',block_timestamp )) as AVG_PRICE,
min(price_usd) over (partition by date_trunc('day',block_timestamp ) order by date_trunc('day',block_timestamp )) as MIN_PRICE,
MAX(price_usd) over (partition by date_trunc('day',block_timestamp ) order by date_trunc('day',block_timestamp )) as MAX_PRICE,
COUNT( price_usd) over (partition by date_trunc('day',block_timestamp ) order by date_trunc('day',block_timestamp )) as Sale_count,
date_trunc('day',block_timestamp ) day
from ethereum.nft_events
where contract_address = lower('0x1cb7176C90426EC53246f5B86b041913B3Cc668e')
and event_type = 'sale'
and date_trunc('day',block_timestamp ) > '2021-06-25T09:55:55Z'
order by day--price_usd desc
Run a query to Download Data