Query editor
selectcase when block_time >= timestamp '2026-08-15 00:00'then '2. durante o rally' else '1. antes' end as periodo,count(distinct date_trunc('day', block_time)) as dias,round(sum(amount_usd) / count(distinct date_trunc('day', block_time)) / 1e6, 1) as volume_medio_dia_mi,round(sum(case when token_bought_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 then amount_usd else 0 end)/ sum(case when token_sold_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 then amount_usd else 0 end), 2) as razao_compra_venda,count(distinct taker) as traders_unicos,count(case when amount_usd > 1e5 then 1 end) as trades_acima_100kfrom dex.tradeswhere blockchain = 'ethereum'and (token_bought_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984or token_sold_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984)and block_time > now() - interval '90' dayand block_time < current_dategroup by 1order by 1