Ali3NDately JACK Swaps Stats on Avalanche Over Time
    Updated 1 hour ago
    with savaxpricet as (
    select hour,
    avg (price) as savaxprice
    from avalanche.price.ez_prices_hourly
    where token_address = '0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be'
    and hour >= '2025-03-01'
    group by 1)

    select date_trunc (day,block_timestamp) as date,
    case when token_in = '0x3fe4902b275caf603c46c81f3d921bb8515b5bc0' then 'Swap From JACK (SELL)'
    when token_out = '0x3fe4902b275caf603c46c81f3d921bb8515b5bc0' then 'Swap To JACK (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 = '0x3fe4902b275caf603c46c81f3d921bb8515b5bc0' then amount_in
    when token_out = '0x3fe4902b275caf603c46c81f3d921bb8515b5bc0' then amount_out end) as Trading_Volume,
    sum (case when amount_in_usd > 0 or amount_out_usd > 0 then coalesce(amount_in_usd,amount_out_usd,0) when token_in = '0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be' then amount_in*savaxprice when token_out = '0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be' then amount_out*savaxprice end) as USD_Trading_Volume,
    avg (case when token_in = '0x3fe4902b275caf603c46c81f3d921bb8515b5bc0' then amount_in
    when token_out = '0x3fe4902b275caf603c46c81f3d921bb8515b5bc0' then amount_out end) as Average_Trading_Volume,
    sum (tx_count) over (partition by Trading_Type order by date) as Cumulative_TX_Count,
    sum (Trading_Volume) over (partition by Trading_Type order by date) as Cumulative_Trading_Volume,
    sum (USD_Trading_Volume) over (partition by Trading_Type order by date) as Cumulative_USD_Trading_Volume,
    from avalanche.defi.ez_dex_swaps t1 join savaxpricet t2 on date_trunc (hour,t1.block_Timestamp) = t2.hour
    where token_in in ('0x3fe4902b275caf603c46c81f3d921bb8515b5bc0')
    or token_out = '0x3fe4902b275caf603c46c81f3d921bb8515b5bc0'
    group by 1,2
    order by 1 desc





    Last run: about 1 hour agoAuto-refreshes every 6 hours
    DATE
    TRADING_TYPE
    TX_COUNT
    TRADERS_COUNT
    TRADING_VOLUME
    USD_TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    CUMULATIVE_TX_COUNT
    CUMULATIVE_TRADING_VOLUME
    CUMULATIVE_USD_TRADING_VOLUME
    1
    2025-04-29 00:00:00.000Swap To JACK (BUY)334345.826899771383.851448.608966598812525516.6046379226908.796546471
    2
    2025-04-29 00:00:00.000Swap From JACK (SELL)131221304.9900139171926.131065.24950069610493207755.67554748309362.997099132
    3
    2025-04-28 00:00:00.000Swap From JACK (SELL)291897183.6797423178227.143239.45599141110363186450.68553356307436.867099132
    4
    2025-04-28 00:00:00.000Swap To JACK (BUY)2315153108.49473163813228.864374.5284209048782521170.77773813226524.946546471
    5
    2025-04-27 00:00:00.000Swap From JACK (SELL)131020987.1567414481804.481614.39667241910073089267.00579125299209.727099132
    6
    2025-04-27 00:00:00.000Swap To JACK (BUY)33169.13380478514.356.3779349288552368062.28300649213296.086546471
    7
    2025-04-26 00:00:00.000Swap From JACK (SELL)171312956.3266283941127.11762.1368604949943068279.8490498297405.247099132
    8
    2025-04-26 00:00:00.000Swap To JACK (BUY)10612840.5759687121137.321284.0575968718522367893.14920171213281.786546471
    9
    2025-04-25 00:00:00.000Swap From JACK (SELL)261720877.6300256391811.25802.9857702179773055323.5224214296278.137099132
    10
    2025-04-25 00:00:00.000Swap To JACK (BUY)231635477.3993673743079.921478.2249736418422355052.573233212144.466546471
    11
    2025-04-24 00:00:00.000Swap From JACK (SELL)151467416.5437708825791.314494.4362513929513034445.89239576294466.887099132
    12
    2025-04-24 00:00:00.000Swap To JACK (BUY)201345399.5906825163789.892063.6177582968192319575.17386562209064.546546471
    13
    2025-04-23 00:00:00.000Swap To JACK (BUY)281646430.0426154964326.421289.7234059867992274175.58318311205274.656546471
    14
    2025-04-23 00:00:00.000Swap From JACK (SELL)331958317.9729494855407.571356.2319290589362967029.34862488288675.577099132
    15
    2025-04-22 00:00:00.000Swap To JACK (BUY)8816984.2675231991417.212123.03344047712227745.54056761200948.236546471
    16
    2025-04-22 00:00:00.000Swap From JACK (SELL)12936082.8812476763043.931804.1440623849032908711.3756754283268.007099132
    17
    2025-04-21 00:00:00.000Swap From JACK (SELL)291690869.1808665357323.842329.9789965788912872628.49442772280224.077099132
    18
    2025-04-21 00:00:00.000Swap To JACK (BUY)1711147057.04837311112262.25252.0374418977632210761.27304441199531.026546471
    19
    2025-04-20 00:00:00.000Swap From JACK (SELL)447720.947179334568.881930.2367948348622781759.31356119272900.237099132
    20
    2025-04-20 00:00:00.000Swap To JACK (BUY)8538692.0133530652856.554299.1125947857462063704.2246713187268.826546471
    54
    7KB
    2s