Query editor
WITH FPMM AS(SELECT fixedProductMarketMaker FROM polymarketfactory_polygon.FixedProductMarketMakerFactory_evt_FixedProductMarketMakerCreationWHERE collateralToken = 0x2791bca1f2de4661ed88a30c99a7a9449aa84174)SELECT COUNT(DISTINCT "Transaction") as "Transactions" FROM (SELECTevt_tx_hash as "Transaction"FROM polymarket_polygon.CTFExchange_evt_OrderFilled -- single-outcome marketsUNION ALLSELECTevt_tx_hash as "Transaction"FROM polymarket_polygon.NegRiskCtfExchange_evt_OrderFilled -- multi-outcome marketsUNION ALLSELECT tx_hash as "Transaction" FROM polygon.logsWHERE topic0 in (0x4f62630f51608fc8a7603a9391a5101e58bd7c276139366fc107dc3b67c3dcf8, 0xadcf2a240ed9300d681d9a3f5382b6c1beed1b7e46643e0c7b42cbe6e2d766b4) -- FPMMBuy and FPMMSell Events in proxies (PositionSplit/PositionMerge)AND contract_address IN (SELECT * FROM FPMM))