Ali3NBy DEX & Pair BLUB Swap Pairs' Stats in Avalanche DEXs
    Updated 1 day ago
    with pricet as (
    select date_trunc (hour,block_timestamp) as day,
    '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd' as token_address,
    'BLUB ' as symbol,
    '18' as decimals,
    median (amount_in_usd/amount_out) as USDPrice
    from avalanche.defi.ez_dex_swaps
    where (symbol_in = 'WAVAX' or symbol_in ilike 'USDC')
    and (symbol_out = 'BLUB' or token_out = '0x0f669808d88b2b0b3d23214dcd2a1cc6a8b1b5cd')
    and block_timestamp >= '2025-03-04'
    group by 1,2,3,4

    union all

    select hour as day,
    token_address,
    'USDC' as symbol,
    decimals,
    avg (price) as usdprice
    from avalanche.price.ez_prices_hourly
    where token_address ilike '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E'
    group by 1,2,3,4),

    SimpleSwap as (
    SELECT
    block_timestamp,
    tx_hash,
    decoded_log:maker as maker,
    decoded_log:makerAsset as makerAsset,
    decoded_log:makerAmountReceived as makerAmountReceived,
    decoded_log:taker as taker,
    decoded_log:takerAsset as takerAsset,
    decoded_log:takerAmountReceived as takerAmountReceived,
    decoded_log
    FROM
    avalanche.core.ez_decoded_event_logs
    Last run: 1 day agoAuto-refreshes every 12 hours
    DEX
    TRADING_PAIR
    TX_COUNT
    TRADERS_COUNT
    TOTAL_TRADING_VOLUME
    TOTAL_USD_TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    AVERAGE_USD_TRADING_VOLUME
    1
    PharaohLIL => BLUB33199.60782252666.535940842
    2
    PharaohBLUB => LIL52279.22767122755.845534245
    3
    Trader JoeBLUB => WAVAX59695143782526591528.2041752945308.9238893.376561746815.019687202
    4
    Trader JoeWAVAX => BLUB62811160572384773336.2825150970774.0735077.417943143749.724561969
    5
    PharaohWAVAX => BLUB84372148209171657.768174820288.6624640.317795756567.827619272
    6
    PharaohBLUB => WAVAX94161802216960520.2996864685974.6822871.655102223493.988475648
    7
    PharaohBLUB => WINK85617210061308.4267488321054.1211753.86498452397.836579926
    8
    PharaohWINK => BLUB7501949286148.75001603284793.9812381.531666688392.819282759
    9
    Trader JoeUSDC => BLUB5192461065218.4640194717475.01806.37279638120.534676851
    10
    PharaohBLUB => avUSD1793571613050.001686611538.26899.6374800266.582007986
    11
    PharaohavUSD => BLUB1666531354218.263143799404.41812.8561003265.776664619
    12
    Trader JoeBLUB => MU2119482349112.6563981918607164.443078857.510471204
    13
    Trader JoeBLUB => USDC628192564414.8999425176789.54351.0042910096.177925387
    14
    Trader JoeMU => BLUB1923505340857.0380228686188.27176.6098642616.002201746
    15
    PharaohBLUB => USDC552145200712.0611813461886.99363.6088064883.424664247
    16
    PharaohUSDC => BLUB558135174198.6373096011655.47312.1839378312.972118492
    17
    PangolinBLUB => WAVAX426918179.537810922137.5119.2007929830.3227934272
    18
    UniswapWAVAX => BLUB773961.392783818129.98565.91325483118.568571429
    19
    PangolinWAVAX => BLUB366936118.422417236109.2716.717001140.2985519126
    20
    UniswapBLUB => WAVAX532994.06862487597.99598.81372497519.598
    23
    2KB
    107s