select
date_trunc('day',block_timestamp) as date,
to_label as Exchange,
count(to_label),
sum(amount_usd) as amount
--to_label,
--count(to_label)
from ethereum.udm_events
where symbol = 'UNI' AND
block_timestamp > '2021-04-04' AND
to_label_type = 'cex'
group by date,to_label
order by date