i_dan$XSGD: Top Traders By Volume
    Updated 2025-03-17
    WITH trade_data AS (
    SELECT
    block_timestamp
    , tx_hash
    , origin_from_address
    , CASE WHEN token_in = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E') THEN 'buy'
    WHEN token_out = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E') THEN 'sell'
    END AS Action
    , CASE WHEN token_in = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E') THEN symbol_in
    WHEN token_out = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E') THEN symbol_out
    END AS symbol
    , CASE WHEN amount_in_usd IS NULL THEN amount_out_usd ELSE amount_in_usd END AS usd_amount
    , CASE WHEN token_in = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E') THEN amount_in
    WHEN token_out = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E') THEN amount_out
    END AS token_amount
    , platform
    FROM avalanche.defi.ez_dex_swaps
    WHERE token_in = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E')
    OR token_out = lower('0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E')
    )

    SELECT
    origin_from_address AS "Address"
    , SUM(usd_amount) AS "Volume Traded"
    FROM trade_data
    GROUP BY 1
    ORDER BY 2 DESC
    LIMIT 20


    -- XSGD - 0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E


    Last run: 16 days ago
    Address
    Volume Traded
    1
    0x4a097d66bedc4389db74835a0e3eb457a8b8e3d242314067.92
    2
    0x502ecc7b5acabd60e6b35cecbbe53b2293a759d923163346.22
    3
    0xc3302b843a4eb3ee0870ac6fecdf9ce39cb5886420717317.8
    4
    0x689afb320bd2525c565e03fc73e7d5290b97731512363080.54
    5
    0xaee4b1937b2f7574f9ca43db3a4d7c6773c4d11e10557126.74
    6
    0x644e5b7c5d4bc8073732cea72c66e0bb90dfc00f9171125.32
    7
    0xd312427b78e4cc05a23fbb855ae87c77728d644b8637435.82
    8
    0xb203ba42371fbe191e584dae86756447ea7a20cc8514761.46
    9
    0x777000d9480e0cd2a70cb24208203667e6bb05726760339.55
    10
    0x7770002d000876446403fb2ec54097c889f55d7d6442766.1
    11
    0x777000000e9ecbb33fe3ddd0f23ccb558a9ef3a06292126.16
    12
    0xbf0619e02a0861f216fd363f5398aa4c86a1c3de6138367.06
    13
    0x7770000004323b56d6231592f753bd48d7e523e55901757.84
    14
    0x77700081d896b37a7be8952b613189a9949a833d5419902.45
    15
    0x777000a98b07b3530110ad7e0ca5abf0e7af281d5089495.59
    16
    0x481787bba8c56f801db8bdb336844b771c0112464766633.09
    17
    0x777000f7bd6ba1ee121a6bc291f188e1bfe8b9c54721135.68
    18
    0x77700088e9acd7afb343fbbeb3903dbe78015a0e4584246.33
    19
    0x13775678d79cbaa5c7f4398f68511aba8e24c82b4564362.82
    20
    0x777000c9e443dcbe9f08364541ba2fc80ff97d274492197.59
    20
    1KB
    1s