Query editor
SELECTDATE_TRUNC('month', block_date) AS month, SUM(volume_usd) AS trading_volume, APPROX_DISTINCT(trader_address) AS unique_traders, APPROX_DISTINCT(pool_address) AS unique_poolsFROM ton.dex_tradesWHERE 1=1AND block_date > NOW() - INTERVAL '1' YEAR-- AND DATE_TRUNC('month', block_date) != DATE_TRUNC('month', NOW()) -- uncomment for full months onlyGROUP BY 1