select block_timestamp::date as days,
swap_program as dex_from,
count (tx_group_id) as swaps_from,
sum(swaps_from) over (partition by dex_from order by days) as cum_swaps_from,
sum(swap_from_amount) as volume_from,
sum(volume_from) over (partition by dex_from order by days) as cum_volume_from
from algorand.swaps
where swap_from_asset_id = 694432641
group by 1, 2
order by 1 desc