Query editor
select date_trunc('month', t.block_time) as month_at,case when token_pair in (select pair from query_3864217 where label = 'Majors') then 'Majors'when token_pair in (select pair from query_3864217 where label = 'Bluechip') then 'Bluechip'when token_pair in (select pair from query_3864217 where label = 'Stables') then 'Stables'else 'Long Tail' end as trading_pair_label,sum(amount_usd) as volumefrom dune.flashbots.result_overall_lq_alltime as twhere case when {{include_null_token_pair}} then true else token_pair is not null endand cast('2023-01-01' as timestamp) < block_timeand t.metaaggregator in ('Cowswap', 'UniswapX', '1inch Fusion')--and block_time < cast('2024-06-01' as timestamp)group by 1,2order by 3 desc