Query editor
with pool_data as(select*from query_5582484),mint_burn_data as(selectt1.pool,t1.mint_tx,t2.burn_tx,t1.mint_user,t2.burn_userfrom(selectcontract_address as pool,count(evt_tx_hash) as mint_tx,count(distinct evt_tx_from) as mint_userfrom uniswap_v3_ethereum.uniswapv3pool_evt_mintgroup bycontract_address)t1left join(selectcontract_address as pool,count(evt_tx_hash) as burn_tx,count(distinct evt_tx_from) as burn_userfrom uniswap_v3_ethereum.uniswapv3pool_evt_burngroup bycontract_address)t2 on t1.pool = t2.pool),swap_data_24h as(selectpool,count(distinct evt_tx_hash) as swap_tx,sum(swap_usd_value) as swap_usd_valuefrom(selectt1.evt_block_time,t1.evt_tx_hash,t1.pool,t2.token_pair,t2.token0,t2.token0_decimal,t1.swap_token0_amount,t1.swap_token0_amount / power(10,t2.token0_decimal) as real_swap_token0_amount,t1.swap_token0_amount / power(10,t2.token0_decimal) * coalesce(t3.price,0) as swap_usd_valuefrom(selectevt_block_time,contract_address as pool,evt_tx_hash,abs(amount0) as swap_token0_amountfrom uniswap_v3_ethereum.uniswapv3pool_evt_swap as t1where evt_block_time >= CAST(current_time AS TIMESTAMP) - INTERVAL '24' hour -- 最新24小时-- and contract_address = 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640)t1left join pool_data as t2 on t1.pool = t2.pool