Query editor
select date_trunc('minute',block_time)as minute, avg(price) as price from (selectblock_time ,token_bought_address as contract_address, amount_usd/(cast(token_bought_amount_raw as double)/1e18) as priceFROM dex.tradeswhere token_bought_address=0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1and amount_usd is not nullunion allSELECTblock_time, token_sold_address as contract_address, amount_usd/(cast(token_sold_amount_raw as double)/1e18) as priceFROM dex.tradeswhere token_sold_address=0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1and amount_usd is not null)awhere price < 3 -- For smoothing extreme valuegroup by 1order by 1 desc