Query editor
-- D1: single ETH/USD daily basis for all agents (WETH in prices.usd, daily average of minute prices).select date_trunc('day',minute) day, avg(price) eth_usd, min(price) lo, max(price) hi, count(*) n_minutesfrom prices.usdwhere blockchain='ethereum' and contract_address=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2and minute >= timestamp '2021-11-01'group by 1 order by 1