MLDZMNsales over time
    Updated 2022-06-10
    with tb1 as (select
    distinct NFT_ADDRESS,
    PROJECT_NAME,
    sum(PRICE_USD) as total_sale,
    count(distinct TX_HASH) as total_trade,
    count(distinct BUYER_ADDRESS) as unique_buyers
    from ethereum.core.ez_nft_sales
    where PLATFORM_NAME='nftx'
    --and EVENT_TYPE='sale'
    and BLOCK_TIMESTAMP>=CURRENT_DATE-60
    group by 1,2
    order by 3 desc limit 3)

    select
    BLOCK_TIMESTAMP::date as day,
    PROJECT_NAME,
    sum(PRICE_USD) as total_sale,
    count(distinct TX_HASH) as total_trade,
    count(distinct BUYER_ADDRESS) as unique_buyers
    from ethereum.core.ez_nft_sales
    where PLATFORM_NAME='nftx'
    and NFT_ADDRESS in (select NFT_ADDRESS from tb1)
    and BLOCK_TIMESTAMP>=CURRENT_DATE-60
    group by 1,2
    order by 1
    Run a query to Download Data