Ali3NDately DEX Swaps Overview Over Time (Avalanche Chain Monitor)
    Updated 9 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 9 hours agoAuto-refreshes every 24 hours
    DATE
    SWAPPERS
    TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    MEDIAN_TRADING_VOLUME
    VOLUME_PER_TRADER
    1
    2025-04-21 00:00:00.000371771219924.51922.58568462123.2319160.593088512
    2
    2025-04-14 00:00:00.00030221630318740.01816.36084590522.920856.978260481
    3
    2025-04-07 00:00:00.00023119904942762.57731.6807588726.9839142.815976902
    4
    2025-03-31 00:00:00.00026477704186233.63932.37591508965.4526596.148869963
    5
    2025-03-24 00:00:00.00034338730654328.28960.55816069360.4221278.301831207
    6
    2025-03-17 00:00:00.00031015681367875.85999.74304754146.4621968.97874738
    7
    2025-03-10 00:00:00.00042213925966437.78868.2487348851.6721935.575244119
    8
    2025-03-03 00:00:00.000411631292569045.04889.00270919258.6331401.235212205
    9
    2025-02-24 00:00:00.000379601138157202.55962.39500312961.4429983.066452845
    10
    2025-02-17 00:00:00.00039722878439207.24765.38095889728.5322114.677187453
    11
    2025-02-10 00:00:00.000404771081875152.9949.82147344742.6826728.145685204
    12
    2025-02-03 00:00:00.000331851295950674.631166.43760773184.239052.302987193
    13
    2025-01-27 00:00:00.000563651290716594.861363.35477385678.2222899.256539697
    14
    2025-01-20 00:00:00.000493631468240075.941417.42400783572.6429743.736724672
    15
    2025-01-13 00:00:00.000843901614503821.771704.71387036271.5519131.458961607
    16
    2025-01-06 00:00:00.000758621051487461.581330.56729989760.1713860.52913949
    17
    2024-12-30 00:00:00.0001479261069146201.081404.75844622642.157227.574605411
    18
    2024-12-23 00:00:00.000130259965408411.221385.42491048156.727411.452653713
    19
    2024-12-16 00:00:00.000334681797974981.41903.650423722147.4853722.211706705
    20
    2024-12-09 00:00:00.000315161861687617.893236.434279781479.4159071.189804861
    ...
    220
    18KB
    8s