Query editor
-- fusi.ng: swap volume per day on every launched pool, from Uniswap V4 PoolManager Swap events.-- Volume is the ETH leg of each swap on ETH-quoted pools (native ETH is always currency0 in V4,-- so amount0 is the ETH side). Stock-quoted pools are counted in `trades` but not in ETH volume.-- Line/bar chart: day vs volume_eth / volume_usd; second axis trades, traders.with pools as (select * from query_8932001),swaps as (selects.evt_block_time as block_time,s.evt_tx_hash as tx_hash,s.id as pool_id,p.token,p.release,p.eth_quoted,abs(cast(s.amount0 as double)) / 1e18 as eth_leg,s.senderfrom uniswap_v4_ethereum.PoolManager_evt_Swap sjoin pools p on p.pool_id = s.id),prices as (select date_trunc('hour', minute) as hour, avg(price) as eth_usdfrom prices.usdwhere blockchain = 'ethereum' and symbol = 'WETH' and minute >= timestamp '2026-09-01'group by 1),tx_senders as (-- the swap `sender` is the router or PoolManager caller; the human is the tx originselect t.hash, t."from" as traderfrom ethereum.transactions twhere t.block_time >= timestamp '2026-09-01'and t.hash in (select tx_hash from swaps))selectdate_trunc('day', s.block_time) as day,sum(case when s.eth_quoted then s.eth_leg else 0 end) as volume_eth,sum(case when s.eth_quoted then s.eth_leg * pr.eth_usd else 0 end) as volume_usd,count(*) as trades,count(distinct ts.trader) as traders,count(distinct s.token) as tokens_tradedfrom swaps sleft join prices pr on pr.hour = date_trunc('hour', s.block_time)left join tx_senders ts on ts.hash = s.tx_hashgroup by 1order by 1