zero-ndoLtSalgorand_price_correlation
    Updated 2022-07-01
    -- reference https://app.flipsidecrypto.com/dashboard/easy-luna-price-volatility-VVt2R-

    WITH

    btc as (

    SELECT
    date_trunc('day', hour) as day,
    avg(price) as price,
    stddev(price) as stand_dev
    FROM flipside_prod_db.ethereum.token_prices_hourly
    WHERE symbol ilike 'wbtc'
    and day> current_date - interval '2 month'
    GROUP BY 1
    ),
    eth as (

    SELECT
    date_trunc('day', hour) as day,
    avg(price) as price,
    stddev(price) as stand_dev
    FROM flipside_prod_db.ethereum.token_prices_hourly
    WHERE symbol ilike 'weth'
    and day> current_date - interval '2 month'
    GROUP BY 1
    ),
    monero as
    (

    SELECT
    date_trunc('day', hour) as day,
    avg(price) as price,
    stddev(price) as stand_dev
    FROM flipside_prod_db.ethereum.token_prices_hourly
    WHERE symbol ilike 'wxmr'
    and day> current_date - interval '2 month'
    Run a query to Download Data