Updated 2023-06-15
    with

    pepe AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS day
    , avg( a.price ) AS price
    , a.symbol AS token
    FROM
    ethereum.core.fact_hourly_token_prices a
    WHERE
    a.token_address = lower( '0x6982508145454ce325ddbe47a25d4ec3d2311933' )
    GROUP BY
    1 , 3
    ORDER BY
    1 DESC
    )

    SELECT
    *
    FROM
    pepe

    Run a query to Download Data