Query editor
withprofit as (selecttx_hash,block_time,blockchain,token_bought_amount as bought_amount,amount_usd / token_bought_amount as value_per_token,amount_usd,token_bought_symbolfromdex.tradeswheretoken_bought_symbol in ('ETH', 'stETH', 'WETH')and date_trunc('day', block_time) = timestamp '2023-10-15'and (amount_usd / token_bought_amount) < 2161.67)selectsum(bought_amount)fromsprofit