cybergenlab[CEX Overview] New users per protocols (Pie Chart)
    Updated 2025-03-29
    --Get historical project user growth

    with monthly_new_users as (
    select
    date_trunc('month', block_timestamp) as time,
    label_type as category,
    project_name as protocol,
    count(distinct from_address) as new_users,
    from arbitrum.core.fact_transactions as transactions
    left join arbitrum.core.dim_labels labels on transactions.to_address = labels.address
    where block_timestamp >= dateadd(month, -1, date_trunc('month',current_date()))
    and block_timestamp < date_trunc('month', current_date())
    and nonce = 0
    and category in ('cex')
    and status = 'SUCCESS'
    group by 1,2,3
    )

    select
    *
    from monthly_new_users
    order by 4 desc

    Last run: 26 days ago
    TIME
    CATEGORY
    PROTOCOL
    NEW_USERS
    1
    2025-02-01 00:00:00.000cexbitget136243
    2
    2025-02-01 00:00:00.000cexbinance13752
    3
    2025-02-01 00:00:00.000cexbybit4105
    4
    2025-02-01 00:00:00.000cexmexc3349
    5
    2025-02-01 00:00:00.000cexfixedfloat2406
    6
    2025-02-01 00:00:00.000cexgate.io1429
    7
    2025-02-01 00:00:00.000cexkucoin916
    8
    2025-02-01 00:00:00.000cexcoinbase359
    9
    2025-02-01 00:00:00.000cexokx98
    10
    2025-02-01 00:00:00.000cexbitso78
    11
    2025-02-01 00:00:00.000cexmaicoin60
    12
    2025-02-01 00:00:00.000cexbitfinex20
    13
    2025-02-01 00:00:00.000cexbtse19
    14
    2025-02-01 00:00:00.000cexwoo network16
    15
    2025-02-01 00:00:00.000cexlbank11
    16
    2025-02-01 00:00:00.000cexswissborg3
    17
    2025-02-01 00:00:00.000cexbitbase2
    18
    2025-02-01 00:00:00.000cexbitbank1
    18
    854B
    82s