select date_trunc('month',block_timestamp) as date,
pool_name,
count(DISTINCT tx_hash) as swaps,
count(DISTINCT origin_from_address) as swappers,
sum(amount_out_usd) as usd_volume
from avalanche.core.ez_dex_swaps
where block_timestamp::date >= '{{Date}}'
and platform = 'gmx'
group by 1,2