Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/SELECTdate_trunc('day', block_time) as timeframe,AVG(cast(amount_usd as decimal)) as avg_swapped_amount,sum(cast(amount_usd as decimal)) as total_swapped_amountFROMuniswap_v2_ethereum.tradesWHEREtoken_sold_address = 0x06450dEe7FD2Fb8E39061434BAbCFC05599a6Fb8 --xenand token_bought_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 --wethGROUP BY1ORDER BY1 desc