0xHaM-dNew vs Recurring Users
    Updated 2025-05-27
    with
    token_info as (
    select
    token_address,
    symbol,
    name,
    decimals
    from aptos.core.dim_tokens
    )
    ,prices as (
    select
    hour::date as p_date,
    symbol,
    decimals,
    token_address,
    avg(price) as avg_price
    from aptos.price.ez_prices_hourly
    GROUP by 1, 2, 3, 4
    )
    , swaps as (
    SELECT
    BLOCK_TIMESTAMP,
    TX_HASH,
    EVENT_DATA,
    EVENT_TYPE,
    sender as swapper,
    CASE
    WHEN event_data:x_in :: int = 0 THEN TRIM(SPLIT_PART(SPLIT(event_type, ',')[1], ' ',2) :: string, '>')
    WHEN event_data:x_in :: int != 0 THEN TRIM(SPLIT_PART(SPLIT(event_type, ',')[0], '<', 2) :: string, ' ')
    END AS token_in,
    CASE
    WHEN event_data:y_in :: int = 0 THEN TRIM(SPLIT_PART(SPLIT(event_type, ',')[1], ' ',2) :: string, '>')
    WHEN event_data:y_in :: int != 0 THEN TRIM(SPLIT_PART(SPLIT(event_type, ',')[0], '<', 2) :: string, ' ')
    END AS token_out,
    CASE
    WHEN event_data : x_in :: int = 0 THEN event_data : y_in :: int
    Last run: 12 days ago
    DATE
    ACTIVE_USERS
    N_NEW_USER
    CUM_USERS
    RECURRING_USER
    Avg AU
    Avg New User
    AVARAGE_7D_USERS
    CUM_NEW_USER
    1
    2025-05-26 00:00:00.00012026071236.41666710.86250.252607
    2
    2025-05-25 00:00:00.000502607536.51882810.907950.3752607
    3
    2025-05-24 00:00:00.000302607336.65126110.9537820.3752607
    4
    2025-05-23 00:00:00.000102607136.793249110.3752607
    5
    2025-05-22 00:00:00.000812607736.94491511.046610.3752607
    6
    2025-05-21 00:00:00.000502606537.06808511.0893620.3752606
    7
    2025-05-20 00:00:00.000302606337.20512811.1367520.52606
    8
    2025-05-19 00:00:00.000412606337.35193111.1845490.6252606
    9
    2025-05-18 00:00:00.000312605237.4956911.2284480.6252605
    10
    2025-05-17 00:00:00.000402604437.64502211.2727270.752604
    11
    2025-05-16 00:00:00.000402604437.79130411.32173912604
    12
    2025-05-15 00:00:00.000602604637.93886511.3711791.1252604
    13
    2025-05-14 00:00:00.000612604538.07894711.4210531.1252604
    14
    2025-05-13 00:00:00.000512603438.22026411.466961.1252603
    15
    2025-05-12 00:00:00.000812602738.36725711.51327412602
    16
    2025-05-11 00:00:00.000812601738.50222211.560.8752601
    17
    2025-05-10 00:00:00.00012226001038.63839311.6071430.752600
    18
    2025-05-09 00:00:00.0001022598838.75784811.6502240.52598
    19
    2025-05-08 00:00:00.00014125961338.88738711.6936940.52596
    20
    2025-05-07 00:00:00.00060259563911.7420810.3752595
    ...
    240
    16KB
    198s