Ali3NOverall XSGD Swaps Stats on Avalanche
    Updated 2025-03-18
    select case when token_in = '0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e' then 'Swap From XSGD (SELL)'
    when token_out = '0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e' then 'Swap To XSGD (BUY)' end as Trading_Type,
    count (distinct tx_hash) as TX_Count,
    count (distinct origin_from_address) as Traders_Count,
    sum (case when token_in = '0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e' then amount_in
    when token_out = '0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e' then amount_out end) as Trading_Volume,
    sum(coalesce(amount_in_usd,amount_out_usd)) as USD_Trading_Volume,
    avg (case when token_in = '0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e' then amount_in
    when token_out = '0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e' then amount_out end) as Average_Trading_Volume,
    avg(coalesce(amount_in_usd,amount_out_usd)) as Average_USD_Trading_Volume
    from avalanche.defi.ez_dex_swaps
    where token_in in ('0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e')
    or token_out = '0xb2f85b7ab3c2b6f62df06de6ae7d09c010a5096e'
    group by 1








    Last run: about 1 month ago
    TRADING_TYPE
    TX_COUNT
    TRADERS_COUNT
    TRADING_VOLUME
    USD_TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    AVERAGE_USD_TRADING_VOLUME
    1
    Swap To XSGD (BUY)1030133492291891190.992516216394324.522569.5551867361904.963462476
    2
    Swap From XSGD (SELL)1040413478287550430.620811212499069.682545.3698381941881.022126936
    2
    194B
    14s