adriaparcerisasAptos Dex 3.4
    Updated 2 days ago
    with
    news as (
    select distinct swapper, min(trunc(block_timestamp,'day')) as debut
    FROM
    aptos.defi.ez_dex_swaps
    where AMOUNT_IN_USD<1e6 and amount_in_usd is not null
    GROUP BY
    1
    )
    SELECT
    debut as day, case when trunc(debut,'year') ilike '%2024%' then 2024 when trunc(debut,'year') ilike '%2023%' then 2023 else 2022 end as year, count(distinct swapper) as new_swapper, sum(new_swapper) over (partition by year order by day) as total_swappers
    FROM
    news
    GROUP BY
    year, day
    ORDER BY
    day DESC, year





    Last run: 1 day ago
    DAY
    YEAR
    NEW_SWAPPER
    TOTAL_SWAPPERS
    1
    2025-06-26 00:00:00.0002022566307078
    2
    2025-06-25 00:00:00.0002022804306512
    3
    2025-06-24 00:00:00.0002022559305708
    4
    2025-06-23 00:00:00.00020221066305149
    5
    2025-06-22 00:00:00.0002022636304083
    6
    2025-06-21 00:00:00.0002022378303447
    7
    2025-06-20 00:00:00.0002022260303069
    8
    2025-06-19 00:00:00.0002022467302809
    9
    2025-06-18 00:00:00.0002022413302342
    10
    2025-06-17 00:00:00.0002022404301929
    11
    2025-06-16 00:00:00.00020221332301525
    12
    2025-06-15 00:00:00.0002022462300193
    13
    2025-06-14 00:00:00.00020221169299731
    14
    2025-06-13 00:00:00.00020221613298562
    15
    2025-06-12 00:00:00.00020222276296949
    16
    2025-06-11 00:00:00.0002022690294673
    17
    2025-06-10 00:00:00.0002022385293983
    18
    2025-06-09 00:00:00.0002022399293598
    19
    2025-06-08 00:00:00.0002022337293199
    20
    2025-06-07 00:00:00.0002022453292862
    ...
    982
    43KB
    26s