Query editor
-- This query has been migrated to run on DuneSQL. If you need to change back because you’re seeing issues, use the Query History view to restore the previous version. If you notice a regression, please email [email protected].SELECTe.created_at,price / 1e18 AS floor,AVG(e.price / 1e18) OVER (ORDER BYe.created_at ROWS BETWEEN 29 PRECEDINGAND CURRENT ROW) AS avg_30,DATE_TRUNC('day', e.created_at) AS day,source,kindFROMreservoir.token_floor_ask_events AS eWHEREcontract = 0x23581767a106ae21c074b2276D25e5C3e136a68bAND token_id = cast(1983 as varchar)