0xHaM-dThe average volume by daily
    Updated 2022-09-13
    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