Query editor
SELECTblockchain,version,token_pair,COUNT(*) AS trade_legs,COUNT(DISTINCT tx_hash) AS transactions,COUNT(DISTINCT tx_from) AS active_senders,SUM(amount_usd) AS volume_usd,AVG(amount_usd) AS avg_trade_usd,MAX(amount_usd) AS max_trade_usdFROM dex.tradesWHERE project = 'uniswap'AND block_time >= current_timestamp - INTERVAL '30' DAYAND amount_usd IS NOT NULLGROUP BY 1, 2, 3ORDER BY volume_usd DESCLIMIT 50;