defi__joshDaily Profit Analysis for $TITCOIN Holders (March 14 - April 2, 2025)
    Updated 8 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: 8 days ago
    day
    daily profit (USD)
    no. of active holders
    average profit / loss per holder (USD)
    1
    2025-03-14 00:00:00.000197823.07277161482410.421312804
    2
    2025-03-15 00:00:00.000218321.474997339858254.453933563
    3
    2025-03-16 00:00:00.000297552.1975820461272233.924683634
    4
    2025-03-17 00:00:00.000243708.3462825871462166.695175296
    5
    2025-03-18 00:00:00.000-72658.4651285511392-52.197173225
    6
    2025-03-19 00:00:00.000233772.6508978841773131.851466947
    7
    2025-03-20 00:00:00.0001055986.744984563958266.798065938
    8
    2025-03-21 00:00:00.0002126660.633012245511385.893782074
    9
    2025-03-22 00:00:00.0002042380.755410717903258.431071164
    10
    2025-03-23 00:00:00.00073724.510498381724910.1703008
    11
    2025-03-24 00:00:00.00089528.397312434777811.51046507
    12
    2025-03-25 00:00:00.000-106249.8094703447655-13.879792223
    13
    2025-03-26 00:00:00.000-392408.5114736267241-54.192585482
    14
    2025-03-27 00:00:00.000407766.443143434728056.011874058
    15
    2025-03-28 00:00:00.0001330550.910233458881149.8199426
    16
    2025-03-29 00:00:00.0004973593.891478811177444.984691015
    17
    2025-03-30 00:00:00.0001157179.0532494710969105.495400971
    18
    2025-03-31 00:00:00.0003139136.4063222111874264.37059174
    19
    2025-04-01 00:00:00.0006799438.5474749715400441.521983602
    20
    2025-04-02 00:00:00.00012505422.666928618565673.602082786
    20
    1KB
    50s