Query editor
selectdate(evt_block_date)dt,title,case whentag1 in ('Stock') or tag2 in ('Stock') or tag3 in ('Stock') then 'Finance'whentag1 in ('Pre-TGE') or tag2 in ('Pre-TGE') or tag3 in ('Pre-TGE') then 'Pre-TGE'whentag1 in ('Crypto') or tag2 in ('Crypto') or tag3 in ('Crypto') then 'Crypto'whentag1 in ('Sports','Basketball','Football','Esports') or tag2 in ('Sports','Basketball','Football','Esports') or tag3 in ('Sports','Basketball','Football','Esports') then 'Sports'whentag1 in ('Tech','Big Tech') or tag2 in ('Tech','Big Tech') or tag3 in ('Tech','Big Tech') then 'Tech'whentag1 in ('Politics','geopolitics','Trump') or tag2 in ('Politics','geopolitics','Trump') or tag3 in ('Politics','geopolitics','Trump') then 'Politics'whentag1 in ('Culture','Entertainment') or tag2 in ('Culture','Entertainment') or tag3 in ('Culture','Entertainment') then 'Culture'whentag1 in ('Marco') or tag2 in ('Marco') or tag3 in ('Marco') then 'Finance'whentag1 in ('Finance') or tag2 in ('Finance') or tag3 in ('Finance') then 'Finance'end as category,ROUND(SUM(CASEWHEN CAST(makerAssetId AS VARCHAR) = '0' THEN CAST(takerAmountFilled AS DOUBLE)WHEN CAST(takerAssetId AS VARCHAR) = '0' THEN CAST(makerAmountFilled AS DOUBLE)ELSE 0END)/ 1e18/2, 2) AS volumefrom query_6573426where date(evt_block_date)>=date_add('day',-31,date(now()))and date(evt_block_date)<date(now())group by 1,2,3order by date(evt_block_date) desc , ROUND(SUM(CASEWHEN CAST(makerAssetId AS VARCHAR) = '0' THEN CAST(takerAmountFilled AS DOUBLE)WHEN CAST(takerAssetId AS VARCHAR) = '0' THEN CAST(makerAmountFilled AS DOUBLE)ELSE 0END)/ 1e18/2, 2) desc