Moeavg trade size
    Updated 2024-10-07
    with base as (
    select
    (call:transaction:"from") as receiver
    from
    axelar.axelscan.fact_gmp
    where
    call ilike '%0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C%'
    and call:returnValues:destinationChain ilike 'ethereum') ,
    base1 as (
    select
    receiver
    from
    axelar.defi.ez_bridge_satellite
    where
    DESTINATION_CHAIN ilike 'ethereum'
    union all
    select
    receiver
    from
    axelar.defi.ez_bridge_squid
    where
    DESTINATION_CHAIN ilike 'ethereum'
    ),
    price_table as (
    select
    date_trunc(day,HOUR) as dt ,
    TOKEN_ADDRESS ,DECIMALS,avg(PRICE) as price_usd
    from

    ethereum.price.ez_prices_hourly
    group by 1,2,3
    ),
    trade_table as (
    select
    QueryRunArchived: QueryRun has been archived