Query editor
WITH price_avg AS (SELECTdate_trunc('day', minute) AS day,AVG(price) AS priceFROM prices.usdWHEREcontract_address IS NULLAND symbol = 'ETH'AND minute >= now() - interval '5' yearGROUP BY 1)SELECTdate_utc,volume_eth,price,volume_eth * price as volume_usd,sum(volume_eth * price) OVER(ORDER BY date_utc) AS volume_usd_cumsumFROM (SELECTDATE_TRUNC('day',ethereum.transactions.block_time) as date_utc,SUM(ethereum.transactions.value) / 1e18 as volume_eth/*"from", "to", "hash", "namespace", "contract_name", "function_name"*/FROM ethereum.transactionsINNER JOIN ethereum.traces_decodedON ethereum.transactions.hash = ethereum.traces_decoded.tx_hashWHERE ethereum.transactions.to = 0x73c129B7170A80dd3A14E83eb2F701e993D400DdAND ethereum.traces_decoded.to = 0x73c129B7170A80dd3A14E83eb2F701e993D400DdAND ethereum.transactions.block_time > TIMESTAMP '2025-02-05'AND ethereum.traces_decoded.block_time > TIMESTAMP '2025-02-05'AND ethereum.traces_decoded.function_name = 'transferETH'GROUP BY 1ORDER BY date_utc DESC )INNER JOIN price_avgON date_utc = day