Query editor
SELECTchain,date_trunc('day', (date_trunc('week', (block_time) + interval '3' day)) - interval '3' day) as trade_week,feature_type-- ,SUM(openfee) AS openfee,SUM(openfee_usd) as openfee_usd-- ,SUM(closefee) AS closefee,SUM(closefee_usd) as closefee_usd,SUM(COALESCE(openfee_usd,0) + COALESCE(closefee_usd,0) ) AS fee_usd,SUM(COALESCE(openVol,0) + COALESCE(close_Vol,0)) AS trade_vol,SUM(COALESCE(openfee,0) + COALESCE(closefee,0) ) AS fee_mixing_token_numberFROM dune."apollox-finance".result_view_all_trade_master_close_openWHEREchain = 'BASE' AND broker IN(1,2)GROUP BY 1,2,3ORDER BY 3,1,2 desc