datavortexTop traders
    Updated 2025-03-02


    WITH all_trades AS (
    SELECT pool_name,
    COUNT(DISTINCT tx_hash) AS total_trades,
    SUM(amount_in_usd) AS total_trades_volume,
    COUNT(DISTINCT origin_from_address) AS total_traders
    FROM ethereum.defi.ez_dex_swaps
    WHERE pool_name IN (
    'USD0-LBTC 3000 60 UNI-V3 LP',
    'WBTC-LBTC 100 1 UNI-V3 LP',
    'eBTC-LBTC 500 10 UNI-V3 LP',
    'LBTC-WETH',
    'LBTC-cbBTC 500 10 UNI-V3 LP',
    'WBTC-LBTC 500 10 UNI-V3 LP'
    )
    GROUP BY pool_name

    UNION ALL

    SELECT pool_name,
    COUNT(DISTINCT tx_hash) AS total_trades,
    SUM(amount_in_usd) AS total_trades_volume,
    COUNT(DISTINCT origin_from_address) AS total_traders
    FROM base.defi.ez_dex_swaps
    WHERE pool_name IN (
    'cbBTC-LBTC 3000 60 UNI-V3 LP',
    'cbBTC-0xeca...11c1 0 1 ASLP',
    'Balancer LBTC/cbBTC',
    'cbBTC-LBTC'
    )
    GROUP BY pool_name

    UNION ALL

    SELECT pool_name,
    Last run: 2 months ago
    TRADER
    TOTAL_TRADED_VOLUME
    1
    0xfa8a...345239149586.84
    2
    0x4339...caeb37547763.83
    3
    0xc789...104136574388.07
    4
    0xf29d...08d523025209.39
    5
    0xe418...ead321571331.79
    6
    0x0083...2e8720093394.59
    7
    0xe4cd...8b4015994529.22
    8
    0x9548...94c714036560.62
    9
    0x0080...60fc10057891.4
    10
    0x62a9...3d427774266.61
    10
    299B
    2s