Query editor
WITHbuys as(select block_date,sum(token_bought_amount_raw) * 1e-18 as buy_amount,sum(amount_usd) as buy_amount_usdfrom dex.tradeswhere blockchain = 'ethereum' andtoken_bought_address = 0x0B9aE6b1D4f0EEeD904D1CEF68b9bd47499f3fFFgroup by block_date), sells as (select block_date,sum(token_sold_amount_raw) * 1e-18 * -1 as sell_amount,sum(amount_usd) * -1 as sell_amount_usdfrom dex.tradeswhere blockchain = 'ethereum' andtoken_sold_address = 0x0B9aE6b1D4f0EEeD904D1CEF68b9bd47499f3fFFgroup by block_date)select buys.block_date,buy_amount,buy_amount_usd,sell_amount,sell_amount_usd,buy_amount + -1 * sell_amount as volume,buy_amount_usd + -1 * sell_amount_usd as volume_usdfrom buys left join sellson buys.block_date = sells.block_date