Query editor
selectdate_trunc('day', minute) as time, avg(price) as pricefrom prices.usdwhere contract_address = 0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38and blockchain = 'sonic' -- replace here to identify your chain's tokenand minute < date_trunc('day', now()) -- today is not done yetand minute >= date('2025-01-07') -- Sonicgroup by 1