TheLaughingManall time volume - perps by instance (w/ EDGE FILTERED)
    Updated 2025-05-05
    -- forked from all time volume - perps by instance (w/ EDGE) @ https://flipsidecrypto.xyz/studio/queries/80d93c4d-235a-4357-9e60-eab9a88d4711

    -- forked from all time volume - perps @ https://flipsidecrypto.xyz/studio/queries/9a60061d-35fc-4256-91ac-3c24833fb613

    with merge as (

    ---arbitrum
    SELECT * EXCLUDE version, 'arbitrum' as label from arbitrum.vertex.ez_perp_trades
    WHERE 1=1
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount !='0x0000000000000000000000000000000000000000000000000000000000000001'
    UNION ALL
    ---base
    SELECT *, 'base' as label from base.vertex.ez_perp_trades
    WHERE 1=1
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount !='0x0000000000000000000000000000000000000000000000000000000000000001'

    UNION ALL
    ---blitz
    SELECT * , 'blitz' as label from blast.blitz.ez_perp_trades
    WHERE 1=1
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount !='0x0000000000000000000000000000000000000000000000000000000000000001'

    UNION ALL
    ---mantle
    SELECT *, 'mantle' as label from mantle.vertex.ez_perp_trades
    WHERE 1=1
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount !='0x0000000000000000000000000000000000000000000000000000000000000001'
    UNION ALL
    ---sei
    SELECT * , 'sei' as label from sei.vertex.ez_perp_trades
    WHERE 1=1
    QueryRunArchived: QueryRun has been archived