Ali3NDately DEX Swaps Overview Over Time (Avalanche Chain Monitor)
    Updated 4 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 4 hours agoAuto-refreshes every 24 hours
    DATE
    SWAPPERS
    TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    MEDIAN_TRADING_VOLUME
    VOLUME_PER_TRADER
    1
    2025-03-31 00:00:00.00023076567821802.92966.68454729565.6224606.595723696
    2
    2025-03-24 00:00:00.00034338730653934.84960.55764345560.4221278.290373347
    3
    2025-03-17 00:00:00.00031015681367591.64999.74263053146.4621968.96958375
    4
    2025-03-10 00:00:00.00042213925966161.4868.24847572851.6721935.568696847
    5
    2025-03-03 00:00:00.000411631292557662.31888.99488038158.6331400.958684012
    6
    2025-02-24 00:00:00.000379601138153628.48962.39198099261.4429982.972299262
    7
    2025-02-17 00:00:00.00039722878439207.24765.38095889728.5322114.677187453
    8
    2025-02-10 00:00:00.000404771081875152.9949.82147344742.6826728.145685204
    9
    2025-02-03 00:00:00.000331851295950674.631166.43760773184.239052.302987193
    10
    2025-01-27 00:00:00.000563651290716594.861363.35477385678.2222899.256539697
    11
    2025-01-20 00:00:00.000493631468240075.941417.42400783572.6429743.736724672
    12
    2025-01-13 00:00:00.000843901614503821.771704.71387036271.5519131.458961607
    13
    2025-01-06 00:00:00.000758621051487461.581330.56729989760.1713860.52913949
    14
    2024-12-30 00:00:00.0001479261069146201.081404.75844622642.157227.574605411
    15
    2024-12-23 00:00:00.000130259965408411.221385.42491048156.727411.452653713
    16
    2024-12-16 00:00:00.000334681797974981.41903.650423722147.4853722.211706705
    17
    2024-12-09 00:00:00.000315161861687617.893236.434279781479.4159071.189804861
    18
    2024-12-02 00:00:00.000414492612891614.383516.952352108491.6863038.712981737
    19
    2024-11-25 00:00:00.000331981894609990.123012.352376464368.4957070.003919513
    20
    2024-11-18 00:00:00.000305562023560424.353196.24773829370.0366224.650620173
    ...
    217
    17KB
    27s