Query editor
selectdate_trunc('day', block_time) as day,sum(case when token_sold_address = 0x89C49A3fA372920aC23ce757A029e6936c0b8e02 then amount_usd else 0 end) as sell_vol,sum(case when token_sold_address = 0x89C49A3fA372920aC23ce757A029e6936c0b8e02 then 1 else 0 end) as sells,sum(case when token_bought_address = 0x89C49A3fA372920aC23ce757A029e6936c0b8e02 then amount_usd else 0 end) as buy_vol,sum(case when token_bought_address = 0x89C49A3fA372920aC23ce757A029e6936c0b8e02 then 1 else 0 end) as buysfrom dex.tradeswhere blockchain = 'arbitrum'--and token_sold_address = 0x89C49A3fA372920aC23ce757A029e6936c0b8e02--and block_time > now() - interval '100' daygroup by 1order by 1 desc