SniperTop Traded Tokens by Volume copy
    Updated 2025-03-12
    with pangolin as ( select block_timestamp,
    tx_hash,
    origin_from_address,
    pool_name,
    symbol_in,
    symbol_out,
    case when amount_in_usd is null then amount_out_usd
    when amount_out_usd is null then amount_in_usd
    when amount_in_usd>=amount_out_usd then amount_in_usd
    when amount_out_usd>amount_in_usd then amount_out_usd end as amount_usd
    from avalanche.defi.ez_dex_swaps
    where platform LIKE '%pangolin%'
    and block_timestamp::date >= '2025-01-01'
    )
    ,
    tbl1 as (select
    symbol_in as token,
    'Sell' as type,
    sum(amount_usd) as volume,
    count(DISTINCT tx_hash) as swaps
    from pangolin
    WHERE amount_usd is not null
    group by 1,2
    order by 3 desc
    limit 10)
    ,
    tbl2 as (select
    symbol_out as token,
    'Buy' as type,
    sum(amount_usd) as volume,
    count(DISTINCT tx_hash) as swaps
    from pangolin
    WHERE amount_usd is not null
    group by 1,2
    order by 3 desc
    limit 10)
    Last run: about 1 month ago
    TOKEN
    TYPE
    VOLUME
    SWAPS
    1
    WAVAXSell15817164.11394125
    2
    PNGSell6425991.550337
    3
    QISell1522045.5310527
    4
    USDCSell1440827.0427720
    5
    USDtSell1281156.9821339
    6
    USDT.eSell869223.7817601
    7
    WETH.eSell826269.589803
    8
    LINK.eSell587728.587825
    9
    USDC.eSell501621.3315650
    10
    XAVASell453708.376478
    11
    WAVAXBuy15825493.03211088
    12
    PNGBuy6215337.6249638
    13
    QIBuy1499782.889028
    14
    USDCBuy1483158.89188786
    15
    USDtBuy1305624.2720993
    16
    USDT.eBuy906855.2119462
    17
    WETH.eBuy853524.8610798
    18
    LINK.eBuy594132.28952
    19
    USDC.eBuy524778.9217281
    20
    XAVABuy449228.957863
    20
    650B
    3s