hessOverview of Top Addresses
    Updated 2024-09-26
    with trade as ( select block_timestamp,
    tx_hash,
    trader,
    symbol,
    amount_usd
    from blast.blitz.ez_perp_trades
    where is_taker = 'true'
    )
    ,
    final as ( select trader,
    sum(amount_usd) as volume,
    avg(amount_usd) as avg_volume,
    median(amount_usd) as medaian_volume,
    min(amount_usd) as min_volume
    from trade
    group by 1)
    ,
    trades as ( select block_timestamp,
    tx_hash,
    trader,
    symbol,
    amount_usd
    from arbitrum.vertex.ez_perp_trades
    UNION
    select block_timestamp,
    tx_hash,
    trader,
    symbol,
    amount_usd
    from arbitrum.vertex.ez_spot_trades
    )
    ,
    final_trades as ( select trader,
    count(DISTINCT block_timestamp::date) as active_days,
    count(DISTINCT tx_hash) as trades,
    count(DISTINCT symbol) as traded_tokens
    QueryRunArchived: QueryRun has been archived