Query editor
SELECTblock_date,COUNT(DISTINCT tx_from) AS user_cnt,COUNT(*) AS swap_cnt,SUM(amount_usd) AS swap_vol_usd,-- === 新增核心对比指标 ===ROUND(COUNT(*) * 1.0 / COUNT(DISTINCT tx_from), 2) AS avg_swaps_per_user,ROUND(SUM(amount_usd) * 1.0 / COUNT(DISTINCT tx_from), 2) AS avg_volume_per_user,ROUND(SUM(amount_usd) * 1.0 / NULLIF(COUNT(*), 0), 2) AS avg_volume_per_swapFROM dex.tradesWHERE blockchain = 'bnb'AND block_date BETWEEN DATE '2025-10-11' AND DATE '2025-11-11'GROUP BY block_dateORDER BY block_date;