hbd1994Top Users with Net Supply USD Volume
    Updated 2023-10-29
    with USDC_prices as (
    select
    hour,
    case
    when symbol = 'USDC' then 'aBasUSDbC'
    end as symbol,
    avg(price) as price
    from ethereum.price.ez_hourly_token_prices
    where symbol in ('USDC')
    and hour >= '2023-08-22'
    group by 1,2),

    WETH_prices as (
    select
    hour,
    case
    when symbol = 'WETH' then 'aBasWETH'
    end as symbol,
    price
    from ethereum.price.ez_hourly_token_prices
    where symbol in ('WETH')
    and hour >= '2023-08-22'),

    cbETH_prices as (
    select
    hour,
    case
    when symbol = 'cbETH' then 'aBascbETH'
    end as symbol,
    price
    from ethereum.price.ez_hourly_token_prices
    where symbol in ('cbETH')
    and hour >= '2023-08-22'),

    main as (
    (select
    Run a query to Download Data