Query editor
with buys as (selecttoken_bought_symbol as token,sum(amount_usd) as total_bought_usdfromdex.tradeswheretaker = 0x3a1e56e02d5cc9ac043eb59efe3f698574c08829group bytoken_bought_symbol),sells as (selecttoken_sold_symbol as token,sum(amount_usd) as total_sold_usdfromdex.tradeswheretaker = 0x3a1e56e02d5cc9ac043eb59efe3f698574c08829group bytoken_sold_symbol)selectcoalesce(b.token, s.token) as "Token",coalesce(b.total_bought_usd, 0) as "Total Bought USD",coalesce(s.total_sold_usd, 0) as "Total Sold USD",coalesce(b.total_bought_usd, 0) - coalesce(s.total_sold_usd, 0) as "Net Buy Amount USD"frombuys bfull outer join sells s on b.token = s.tokenorder by"Net Buy Amount USD" desc