StangFASToverall of the top 500 users based on total USD volume
    Updated 2023-08-27
    with

    token_price1 AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS day
    , avg( a.price ) AS price
    , a.symbol AS token
    , a.token_address AS token_id
    FROM
    base.core.fact_hourly_token_prices a
    GROUP BY 1 , 3 , 4
    ORDER BY 1 DESC
    )
    ,
    token_price2 AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS day
    , avg( a.price ) AS price
    , a.symbol AS token
    , a.token_address AS token_id
    FROM
    base.core.fact_hourly_token_prices a
    GROUP BY 1 , 3 , 4
    ORDER BY 1 DESC
    )
    ,
    eth_price AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS day
    , avg( a.price ) AS price
    , a.symbol AS token
    , a.token_address AS token_id
    FROM
    Run a query to Download Data