Ali3NBLUB Swap Pairs' Stats in Avalanche DEXs
    Updated 8 days ago
    with pricet as (
    select date_trunc (day,block_timestamp) as date2,
    avg (amount_in_usd/amount_out) as USDPrice
    from avalanche.defi.ez_dex_swaps
    where symbol_in in ('WAVAX','USDC')
    and (symbol_out = 'WINK' or token_out = '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd')
    and block_timestamp >= '2025-02-05'
    group by 1)

    select symbol_in || ' => ' || symbol_out as Trading_Pair,
    count (distinct tx_hash) as TX_Count,
    count (distinct origin_from_address) as Traders_Count,
    sum (case when token_in = '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd' then amount_in
    when token_out = '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd' then amount_out end) as Total_Trading_Volume,
    sum (coalesce(amount_in_usd,amount_out_usd)) as Total_USD_Trading_Volume,
    avg (case when token_in = '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd' then amount_in
    when token_out = '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd' 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 t1 left outer join pricet t2 on t1.block_timestamp::Date = t2.date2
    where token_in in ('0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd')
    or token_out = '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd'
    group by 1
    order by 2 desc







    Last run: 8 days agoAuto-refreshes every 24 hours
    TRADING_PAIR
    TX_COUNT
    TRADERS_COUNT
    TOTAL_TRADING_VOLUME
    TOTAL_USD_TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    AVERAGE_USD_TRADING_VOLUME
    1
    WAVAX => BLUB67386161292518112833.6970355646966.2433244.60800973734.661908245
    2
    BLUB => WAVAX64738143872617932782.1771157385206.935528.707093399778.790892312
    3
    BLUB => MU2095474348593.5821506538606.04166.0760277047.67026738
    4
    MU => BLUB1905497340482.9657813976187.49178.0768649486.108084896
    5
    BLUB => avUSD1659511337584.9642010311037.83806.2597734796.817683755
    6
    avUSD => BLUB1579461149150.6229099009.48727.7711354715.84651525
    7
    BLUB => USDC1129290765126.9611238638676.53354.2254449655.25850303
    8
    USDC => BLUB10263291239417.1013290719130.48659.61527478913.586988636
    9
    BLUB => WINK85617210061308.4267488321054.1211753.86498452397.836579926
    10
    WINK => BLUB7501949286148.75001603284793.9812381.531666688392.819282759
    11
    AMI => BLUB42271980.465779519047.1539471310
    12
    BLUB => AMI3517831.0467693860.0223.7441934110.0025
    13
    BLUB => LIL52279.22767122755.845534245
    14
    LIL => BLUB33199.60782252666.535940842
    15
    BLUB => KET1190.6583628560.2290.6583628560.22
    15
    1KB
    23s