Query editor
select sum(amount_usd)from dex.tradeswhere (token_bought_address = 0xb533687ef77459093368c43e95f8df1c2b5a1f7aor token_sold_address = 0xb533687ef77459093368c43e95f8df1c2b5a1f7a) and block_time > now() - interval '7' day
Query editor
1select sum(amount_usd)2from dex.trades3where (token_bought_address = 0xb533687ef77459093368c43e95f8df1c2b5a1f7a4or token_sold_address = 0xb533687ef77459093368c43e95f8df1c2b5a1f7a) and block_time > now() - interval '7' day5