Query editor
selectdate_trunc('week', block_time) as week,project,count(distinct tx_hash) as "total number of trades",count(distinct tx_from) as "total number of traders",count(distinct token_pair) as "total number of unique token/trade pairs",sum(amount_usd) as "total trade volume",avg(amount_usd) as "average trade amount",count(distinct tx_hash) / count(distinct block_date) as "daily average trades",count(distinct tx_from) / count(distinct block_date) as "daily average traders"from dex.tradeswhere blockchain = 'avalanche_c'group by 1,2order by 6 desc