PapasotRand Gallery weekly buyers since Jun 2021
    Updated 2023-01-03
    select
    date_trunc('week', block_timestamp) as date,
    --block_timestamp::date:month as date,
    count(distinct tx_group_id) as n_sales,
    count(distinct sender) as NFT_buyers,
    sum(amount) as fee_paid,
    sum(fee_paid) over (order by date asc rows between unbounded preceding and current row) as cum_fee_paid,
    sum(n_sales) over (order by date asc rows between unbounded preceding and current row) as cum_n_sales,
    sum(NFT_buyers) over (order by date asc rows between unbounded preceding and current row) as cum_nft_buyers
    from algorand.payment_transaction
    where
    receiver = 'RANDGVRRYGVKI3WSDG6OGTZQ7MHDLIN5RYKJBABL46K5RQVHUFV3NY5DUE'
    and
    TX_GROUP_ID is not null
    and
    block_timestamp > '2021-06-01'

    group by date
    order by date desc
    Run a query to Download Data