defi__joshDaily Profit Analysis for $TITCOIN Holders (March 14 - April 2, 2025)
    Updated 6 days ago
    with raw as (
    select
    block_timestamp,
    block_timestamp::date as day,
    owner,
    balance
    from solana.core.fact_token_balances
    where block_timestamp::date >= '2025-03-06' -- first mint date
    and mint = 'FtUEW73K6vEYHfbkfpdBZfWpxgQar2HipGdbutEhpump' -- $TITCOIN CA
    qualify row_number() over (partition by day, owner order by block_timestamp desc) = 1
    ),

    owners as (
    select
    distinct owner as owner
    from raw
    ),

    all_dates as (
    select
    date_day as day
    from crosschain.core.dim_dates
    where date_day::date between '2025-03-14' and '2025-04-02'
    ),

    all_dates_owners as (
    select
    day,
    owner
    from all_dates
    cross join owners
    ),

    daily_join as (
    select
    day,
    Last run: 6 days ago
    day
    daily profit (USD)
    no. of active holders
    average profit / loss per holder (USD)
    1
    2025-03-14 00:00:00.000200237.136785128483414.569641377
    2
    2025-03-15 00:00:00.000213154.898982894856249.012732457
    3
    2025-03-16 00:00:00.000297307.5460897321272233.732347555
    4
    2025-03-17 00:00:00.000245455.8691250951460168.120458305
    5
    2025-03-18 00:00:00.000-71876.2358160111391-51.672347819
    6
    2025-03-19 00:00:00.000222296.9349816071773125.378981941
    7
    2025-03-20 00:00:00.0001061882.639488053962268.016819659
    8
    2025-03-21 00:00:00.0002119382.949557075513384.433693009
    9
    2025-03-22 00:00:00.0002057108.453117527902260.327569364
    10
    2025-03-23 00:00:00.00082337.336018619724911.358440615
    11
    2025-03-24 00:00:00.00075390.54213586977739.699027677
    12
    2025-03-25 00:00:00.000-87885.9996136777651-11.486864412
    13
    2025-03-26 00:00:00.000-411887.2092671917237-56.914081701
    14
    2025-03-27 00:00:00.000406370.741908589727155.889250709
    15
    2025-03-28 00:00:00.0001340798.496850118877151.041849369
    16
    2025-03-29 00:00:00.0004963075.014750911171444.282070965
    17
    2025-03-30 00:00:00.0001159516.8032519610962105.776026569
    18
    2025-03-31 00:00:00.0003142973.9623668911869264.805287924
    19
    2025-04-01 00:00:00.0006795651.5119972515397441.362051828
    20
    2025-04-02 00:00:00.00010628197.939433517248616.198860125
    20
    1KB
    31s