TheLaughingMannew vs old traffic
    Updated 2025-05-14
    -- forked from new users by instance @ https://flipsidecrypto.xyz/studio/queries/c8ac5c1a-c63d-4c2f-bb3c-8bf718b0822c

    -- forked from new users @ https://flipsidecrypto.xyz/studio/queries/1a856392-7af8-4ad9-96ee-909b0154fe62

    with merge_all_time as (
    ---arbitrum
    SELECT * EXCLUDE version, 'arbitrum' as label from arbitrum.vertex.ez_perp_trades
    WHERE 1=1
    --AND block_timestamp::date BETWEEN '{{start_date}}' AND '{{end_date}}'
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount!='0x0000000000000000000000000000000000000000000000000000000000000001'
    UNION ALL
    ---base
    SELECT *, 'base' as label from base.vertex.ez_perp_trades
    WHERE 1=1
    --AND block_timestamp::date BETWEEN '{{start_date}}' AND '{{end_date}}'
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount!='0x0000000000000000000000000000000000000000000000000000000000000001'

    UNION ALL
    ---blitz
    SELECT * , 'blitz' as label from blast.blitz.ez_perp_trades
    WHERE 1=1
    --AND block_timestamp::date BETWEEN '{{start_date}}' AND '{{end_date}}'
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount!='0x0000000000000000000000000000000000000000000000000000000000000001'

    UNION ALL
    ---mantle
    SELECT * , 'mantle' as label from mantle.vertex.ez_perp_trades
    WHERE 1=1
    --AND block_timestamp::date BETWEEN '{{start_date}}' AND '{{end_date}}'
    AND trader != '0x0000000000000000000000000000000000000000'
    AND subaccount!='0x0000000000000000000000000000000000000000000000000000000000000001'

    QueryRunArchived: QueryRun has been archived