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