Query editor
with volume_24h as (selectsum(amount_usd) as volume_24h_usdfrom dex.tradeswhere blockchain = 'bnb'and (token_bought_address = 0x6050d829f5a5e0ea758d8357ddcdec1381699248or token_sold_address = 0x6050d829f5a5e0ea758d8357ddcdec1381699248)and block_time >= now() - interval '24' hour),tx_24h as (selectcount(*) as tx_24hfrom dex.tradeswhere blockchain = 'bnb'and (token_bought_address = 0x6050d829f5a5e0ea758d8357ddcdec1381699248or token_sold_address = 0x6050d829f5a5e0ea758d8357ddcdec1381699248)and block_time >= now() - interval '24' hour)selectround(volume_24h_usd / nullif(tx_24h, 0), 2) as avg_trade_size_usdfrom volume_24hcross join tx_24h