Yousefi_1994Optimistic Bears - OP and ETH price
    Updated 2022-11-09
    with op_token_price as (
    select
    hour::date as "Days",
    avg(price) as "OP Price"
    from optimism.core.fact_hourly_token_prices
    where hour::date >= '2022-07-01' and hour::date <= '2022-07-31'
    and token_address = '0x4200000000000000000000000000000000000042'
    group by "Days"
    ),
    eth_token_price as (
    select
    hour::date as "Days",
    avg(price) as "ETH Price"
    from optimism.core.fact_hourly_token_prices
    where hour::date >= '2022-07-01' and hour::date <= '2022-07-31'
    and token_address = '0x4200000000000000000000000000000000000006'
    group by "Days"
    )

    select
    "Days",
    "OP Price",
    "ETH Price"
    from op_token_price
    join eth_token_price using("Days")

    Run a query to Download Data