nitsJan 1st-Jan 14th
    Updated 2022-02-22
    with algo_labels as(SELECT address, label from algorand.labels
    where label_type = 'cex' and label not like '%group%')

    SELECT date(block_timestamp) as day,label,sum(amount) as total_vol, count(*) as total_txs, count(distinct sender) as unique_senders,
    sum(total_vol) over (order by day) as cum_volume, avg(total_vol) over (order by day) as avg_vol
    from
    (SELECT * from algorand.payment_transaction
    inner join algo_labels
    on address = receiver)
    where day <= '2022-01-14' and day >= '2022-01-01'
    GROUP by 1,2
    order by 1
    Run a query to Download Data