Query editor
with vol as(select date_trunc('day', block_time) as day, project, sum(amount_usd) as volumefrom dex.tradeswhere block_time <DATE_TRUNC('day', NOW())andproject in ('aerodrome')--and token_pair in ('USDbC-WETH','cbETH-WETH','USDbC-USDC','USDC-WETH')group by 1,2),price as (select date_trunc('day', minute) as day,avg(price) as price from prices.usd where symbol='AERO' and blockchain='base' group by 1)select a.day as time,a.volume as x,b.price from vol a join price b on a.day=b.day