Sbhn_NPreligious-moccasin
    Updated 2025-02-07
    with
    /* Price CTEs – daily average prices */
    price_ena as (
    select hour::date as datee,
    avg(price) as usdprice
    from crosschain.price.ez_prices_hourly
    where symbol = 'ENA'
    group by 1
    ),
    price_swell as (
    select hour::date as datee,
    avg(price) as usdprice
    from crosschain.price.ez_prices_hourly
    where symbol = 'SWELL'
    group by 1
    ),
    price_eth as (
    select hour::date as datee,
    avg(price) as usdprice
    from ethereum.price.ez_prices_hourly
    where symbol = 'WETH'
    group by 1
    ),
    price_weeth as (
    select hour::date as datee,
    avg(price) as usdprice
    from crosschain.price.ez_prices_hourly
    where symbol = 'WEETH'
    group by 1
    ),
    price_rsweth as (
    select hour::date as datee,
    avg(price) as usdprice
    from crosschain.price.ez_prices_hourly
    where symbol = 'RSWETH'
    group by 1
    QueryRunArchived: QueryRun has been archived