Nige7777Batz Prices
    Updated 2022-01-20

    select distinct
    avg(price_usd) over (partition by date_trunc('hour',block_timestamp ) order by date_trunc('hour',block_timestamp )) as AVG_PRICE,
    min(price_usd) over (partition by date_trunc('hour',block_timestamp ) order by date_trunc('hour',block_timestamp )) as MIN_PRICE,
    MAX(price_usd) over (partition by date_trunc('hour',block_timestamp ) order by date_trunc('hour',block_timestamp )) as MAX_PRICE,
    COUNT( price_usd) over (partition by date_trunc('hour',block_timestamp ) order by date_trunc('hour',block_timestamp )) as Sale_count,
    date_trunc('hour',block_timestamp ) hour
    from ethereum.nft_events
    where contract_address = lower('0xc8adfb4d437357d0a656d4e62fd9a6d22e401aa0')
    and event_type = 'sale'
    and date_trunc('hour',block_timestamp ) > '202-01-17T09:55:55Z'
    order by hour--price_usd desc
    Run a query to Download Data