Query editor
selectsum(case when is_trade then amount end) as total_trade_volume_usd,sum(case when side = 'buy' then amount else -amount end) as tvl_usd,0.008 * sum(case when is_trade then amount end) as est_protocol_fees_usd,(select count(*) from query_7994798) as total_traders,(select count(*) from query_7994696) as total_marketsfrom query_7994711