Ario2023-09-14 01:27 PM
    Updated 2023-09-14
    with price as (
    select
    date_trunc(day, HOUR) as date,
    SYMBOL,
    avg(PRICE) as avg_price
    from base.price.ez_hourly_token_prices
    where SYMBOL in ('DAI', 'USDbC', 'cbETH')
    group by 1,2

    union all

    select
    date_trunc(day, HOUR) as date,
    SYMBOL,
    avg(PRICE) as avg_price
    from ethereum.price.ez_hourly_token_prices
    where SYMBOL in ('WETH', 'MAV')
    group by 1,2
    )
    select
    * from price
    where date >= '2023-08-09'
    Run a query to Download Data