Query editor
with base as (selectblock_time,blockchain,--project,case when token_pair= 'ETH-USDC' then 'USDC-WETH'when token_pair = 'ETH-USDC.e' then 'USDC-WETH'when token_pair = 'ETH-USDT' then 'USDT-WETH'when token_pair = 'USDC.e-WETH' then 'USDC-WETH'when token_pair = 'USDbC-WETH' then 'USDC-WETH'when token_pair = 'ETH-USDbC' then 'USDC-WETH'when token_pair = 'BRETT-ETH' then 'BRETT-WETH'when token_pair = 'USD+-USDC.e' then 'USD+-USDC'when token_pair = 'USD+-USDbC' then 'USD+-USDC'else token_pairend as token_pair,amount_usdfrom dex.tradeswhere blockchain = 'base'and project not in ('1inch-LOP','0x-API')and block_time > now() - interval '180' day)selectdate_trunc('day', block_time) as evt_day,token_pair,sum(amount_usd) as usd_volumefrom basewhere token_pair in ('USDC-WETH', 'BRETT-WETH', 'USD+-USDC')group by 1,2order by 1