alirsWBTC Price
    Updated 2022-06-29
    --with WBTC_price as (
    select
    distinct balance_date::date as day
    ,avg(price) as avg_WBTC_Price
    --over(partition by day) as avg_price_daily
    from flipside_prod_db.ethereum.erc20_balances
    where symbol = 'WBTC'
    and balance_date BETWEEN '2022-01-01' and CURRENT_DATE
    -->= '2021-01-01'
    --and balance_date < CURRENT_DATE
    GROUP BY 1
    order by 1
    -- order by day
    --)

    -- select
    -- *
    -- ,lead(avg_price_daily) over(order by day) as next_day_price_usd
    -- , 100 * ((next_day_price_usd-avg_price_daily)/avg_price_daily) as change_percentage
    -- from daily_price
    -- order by day


    Run a query to Download Data