Ali3NDately DEX Swaps Overview Over Time (Avalanche Chain Monitor)
    Updated 17 hours ago
    with dextable as (
    select block_timestamp,
    case when platform ilike '%trader-joe%' then 'Trader Joe'
    when platform ilike '%kyber%' then 'Kyberswap'
    when platform ilike '%uniswap%' then 'Uniswap'
    when platform ilike '%Pharaoh%' then 'Pharaoh'
    else initcap (platform) end as dex,
    origin_from_address as trader,
    coalesce (amount_in_usd,amount_out_usd,0) as volume
    from avalanche.defi.ez_dex_swaps
    where block_timestamp >= '{{From_Date}}' and block_timestamp <= '{{To_Date}}'

    union all

    select t1.date,
    'Dexalot' as DEX,
    flattened_response.value:value as trader,
    t1.volume,
    from (
    select live.udf_api('https://metrics.avax.network/v1/active_addresses/432204'):data:results as response) as api_data,
    table (flatten(input => api_data.response)) flattened_response
    join (
    select date,
    volume
    from external.defillama.fact_dex_volume
    where protocol = 'dexalot') as t1
    on t1.date = to_timestamp (flattened_response.value:timestamp)::date
    where t1.date >= '{{From_Date}}' and t1.date <= '{{To_Date}}')

    select date_trunc ({{Time_Interval}},block_timestamp) as date,
    count (Distinct trader) as Swappers,
    sum (coalesce (volume,0)) as Trading_Volume,
    avg (coalesce (volume,0)) as Average_Trading_Volume,
    median (coalesce (volume,0)) as Median_Trading_Volume,
    Trading_Volume / Swappers as Volume_Per_Trader
    from dextable
    Last run: about 17 hours agoAuto-refreshes every 24 hours
    DATE
    SWAPPERS
    TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    MEDIAN_TRADING_VOLUME
    VOLUME_PER_TRADER
    1
    2025-05-19 00:00:00.00048168716838825.16715.65870395761.9314882.054998339
    2
    2025-05-12 00:00:00.00052116993627467.64745.83274295449.0619065.68937831
    3
    2025-05-05 00:00:00.00039213935769648903.54385294153.7423863.760691607
    4
    2025-04-28 00:00:00.00037871823239699.86932.91823177930.0921737.997408571
    5
    2025-04-21 00:00:00.000392221161679036.181094.0750450739.2329618.046917036
    6
    2025-04-14 00:00:00.00030221630318754.9816.3608651922.920856.978753185
    7
    2025-04-07 00:00:00.00023119904942767.4731.68076277526.9839142.816185821
    8
    2025-03-31 00:00:00.00026477704186234.61932.37591638665.4526596.148906976
    9
    2025-03-24 00:00:00.00034338730654328.28960.55816069360.4221278.301831207
    10
    2025-03-17 00:00:00.00031015681367875.85999.74304754146.4621968.97874738
    11
    2025-03-10 00:00:00.00042213925966437.78868.2487348851.6721935.575244119
    12
    2025-03-03 00:00:00.000411631292569045.04889.00270919258.6331401.235212205
    13
    2025-02-24 00:00:00.000379601138157202.55962.39500312961.4429983.066452845
    14
    2025-02-17 00:00:00.00039722878439207.24765.38095889728.5322114.677187453
    15
    2025-02-10 00:00:00.000404771081875152.9949.82147344742.6826728.145685204
    16
    2025-02-03 00:00:00.000331851295950674.631166.43760773184.239052.302987193
    17
    2025-01-27 00:00:00.000563651290716594.861363.35477385678.2222899.256539697
    18
    2025-01-20 00:00:00.000493631468240075.941417.42400783572.6429743.736724672
    19
    2025-01-13 00:00:00.000843901614503821.771704.71387036271.5519131.458961607
    20
    2025-01-06 00:00:00.000758621051487461.581330.56729989760.1713860.52913949
    ...
    224
    18KB
    42s