i_dan$XSGD: Top Traders By Transactions
    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"
    , COUNT(tx_hash) AS "Transaction Count"
    FROM trade_data
    GROUP BY 1
    ORDER BY 2 DESC
    LIMIT 20


    -- XSGD - 0xb2F85b7AB3c2b6f62DF06dE6aE7D09c010a5096E



    Last run: about 1 month ago
    Address
    Transaction Count
    1
    0x4a097d66bedc4389db74835a0e3eb457a8b8e3d243268
    2
    0xc3302b843a4eb3ee0870ac6fecdf9ce39cb5886418228
    3
    0x644e5b7c5d4bc8073732cea72c66e0bb90dfc00f10562
    4
    0xbf0619e02a0861f216fd363f5398aa4c86a1c3de8796
    5
    0xaee4b1937b2f7574f9ca43db3a4d7c6773c4d11e8094
    6
    0xd312427b78e4cc05a23fbb855ae87c77728d644b7275
    7
    0xb0bada5d45d939a03c6d211d24a61a4418d7cd134422
    8
    0x777000d9480e0cd2a70cb24208203667e6bb05722211
    9
    0x777000000e9ecbb33fe3ddd0f23ccb558a9ef3a02197
    10
    0x7770002d000876446403fb2ec54097c889f55d7d1960
    11
    0x7770000004323b56d6231592f753bd48d7e523e51844
    12
    0xb203ba42371fbe191e584dae86756447ea7a20cc1439
    13
    0x502ecc7b5acabd60e6b35cecbbe53b2293a759d91401
    14
    0x77700081d896b37a7be8952b613189a9949a833d1292
    15
    0x77700088e9acd7afb343fbbeb3903dbe78015a0e1262
    16
    0x777000a98b07b3530110ad7e0ca5abf0e7af281d1252
    17
    0x77700000de06d98d81088419aeb313b9e14e676b1215
    18
    0xcb1f2ea2416f177d2d2494d76a8f217e2d6620091209
    19
    0xb91fc6fb759491ad79b0b929faab618093e46e4f1192
    20
    0x8e6f715dab2cc9a9e06c35261cfc30997482259b1184
    20
    1KB
    1s