Query editor
WITH eth_price AS (SELECT avg(price) AS eth_usdFROM prices.usdWHERE blockchain = 'ethereum'AND contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2AND minute >= now() - interval '1' hour),total_eth AS (SELECT sum(cast(s.ethAmount AS double) / 1e18) AS eth_volFROM dx_terminal_pro_base.Authority_evt_AgentSwapRecorded sWHERE cast(s.ethAmount AS double) > 0)SELECT round(te.eth_vol * ep.eth_usd, 0) AS total_volume_usdFROM total_eth teCROSS JOIN eth_price ep