Query editor
with daily_stats as (selectdate_trunc('day', block_time) as day,sum(amount_usd) as daily_volume_usd,count(*) as daily_tx_countfrom dex.tradeswhere blockchain = 'bnb'and (token_bought_address = 0x6050d829f5a5e0ea758d8357ddcdec1381699248or token_sold_address = 0x6050d829f5a5e0ea758d8357ddcdec1381699248)group by 1)selectday,daily_volume_usd,daily_tx_count,round(daily_volume_usd / nullif(daily_tx_count, 0), 2) as avg_trade_size_usdfrom daily_statsorder by day