Ali3NDately DEX Swaps Overview Over Time (Avalanche Chain Monitor)
    Updated 18 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 18 hours agoAuto-refreshes every 24 hours
    DATE
    SWAPPERS
    TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    MEDIAN_TRADING_VOLUME
    VOLUME_PER_TRADER
    1
    2025-06-09 00:00:00.00054227522904590.19621.53616406679.349642.882515905
    2
    2025-06-02 00:00:00.000154431729740851.6443.83810067124.264725.352109356
    3
    2025-05-26 00:00:00.00055999860914049.74573.77018625735.8215373.739704995
    4
    2025-05-19 00:00:00.00062876905274566.04691.43194977466.4314397.776036007
    5
    2025-05-12 00:00:00.000545681086903021.97725.89507574253.0619918.322496152
    6
    2025-05-05 00:00:00.000406071053026381.21917.03791217665.6225932.139316128
    7
    2025-04-28 00:00:00.00037991910070444.57970.23469820637.8923954.895753468
    8
    2025-04-21 00:00:00.000397231324634839.761188.68174279246.8533346.797567153
    9
    2025-04-14 00:00:00.00030291685450259.6847.28300885827.0422628.84221716
    10
    2025-04-07 00:00:00.00023193955656899.75752.54974419129.8441204.540152201
    11
    2025-03-31 00:00:00.00026603742744341.68952.08253753969.9627919.570788257
    12
    2025-03-24 00:00:00.00034453764128415.21983.41653459364.0222178.864401068
    13
    2025-03-17 00:00:00.00031101688965374.071001.15869100347.0222152.515162535
    14
    2025-03-10 00:00:00.00042291941504193.06875.49127540352.7422262.519048024
    15
    2025-03-03 00:00:00.000412741332543866.47901.68039711260.5432285.309552503
    16
    2025-02-24 00:00:00.000381511240992752.971012.22074287367.6332528.446252261
    17
    2025-02-17 00:00:00.000400061060239205.89855.11092229536.9126502.004846523
    18
    2025-02-10 00:00:00.000407711303478540.091057.01276066155.0631970.727725344
    19
    2025-02-03 00:00:00.000334941476516491.461247.29382202499.9844083.014613364
    20
    2025-01-27 00:00:00.000569651457013325.261413.736037675100.3725577.342671114
    ...
    227
    18KB
    389s