Query editor
selectcount(*) as cnt,count(distinct t.evt_tx_hash) as distinct_tx,sum(case when t.side = 0 then cast(t.makerAmountFilled as double)else cast(t.takerAmountFilled as double) end) / 1e6 as sum_usdfrom polymarket_v2_polygon.ctfexchange_evt_orderfilled twhere t.evt_block_time >= date '{{day}}'and t.evt_block_time < date '{{day}}' + interval '1' day