Select
date_trunc('month', block_timestamp) as date,
sum(amount_out_usd) as trading_volume,
count(distinct origin_from_address) as nb_traders,
count(tx_hash) as nb_swaps
from ethereum.core.ez_dex_swaps
where platform = 'balancer'
and date >= '{{Start_Date}}'
and date <= '{{End_Date}}'
group by date