Salehtortuga stake_new_users
    Updated 2025-05-12
    ----------------------------------------------Price------------------------------------
    with lst_aptos_price_last as (
    select
    median(price) as aptos_price
    from aptos.price.ez_prices_hourly
    where symbol='APT'
    and hour::date=current_date
    )
    ,lst_aptos_price_all as (
    select
    hour::date as price_date
    ,median(price) as "APT Price"
    from aptos.price.ez_prices_hourly
    where symbol='APT'
    group by 1
    order by 1
    )
    ---------------------------------------------Stake-------------------------------------
    ,lst_stake as (
    select
    block_timestamp::date as date_a
    ,tx_hash
    ,event_data:delegator as staker
    ,event_data:amount/1e8 as amount
    ,event_data:t_apt_coins/1e8 as tAPT_amount
    from aptos.core.fact_events
    where block_timestamp::date >='2022-10-19'
    and SUCCESS=true
    and TX_TYPE='user_transaction'
    and event_module='stake_router'
    and EVENT_RESOURCE='StakeEvent'
    and event_address='0x8f396e4246b2ba87b51c0739ef5ea4f26515a98375308c31ac2ec1e42142a57f'
    group by all
    )
    ---------------------------------------------Unstake-------------------------------------
    ,lst_unstake as (
    Last run: 22 days ago
    DATE
    APTOS_PRICE
    APT Price
    STAKES
    DELEGATORS
    APT_VOLUME
    tAPT Volume Stake
    AVG.tAPT Volume Stake
    MAX.tAPT Volume Stake
    tAPT Volume Stake(USD)
    AVG.tAPT Volume Stake(USD)
    MAX.tAPT Volume Stake(USD)
    Cumulative Staking Volume(USD)
    Cumulative Staking Volume(tAPT)
    New Delegators
    Cumulative New Delegators
    1
    2025-04-12 00:00:00.0005.934.85221.208292551.026764310.5133821550.76478826.0887123583.0443561794.5351940261574692.39401363265546.778079871154229
    2
    2025-04-13 00:00:00.0005.934.9577-924.26484812-788.7338874-28.16906740773.92922264-4677.191952282-167.042569724438.4002902551570015.20206135264758.044192474154233
    3
    2025-04-14 00:00:00.0005.934.874421.6982458318.354622411.52955186715.16578756108.8429108919.07024257489.9331202311570124.04497224264776.398814883154236
    4
    2025-04-16 00:00:00.0005.934.64332.11521.79741640.59913881.6995238410.6586792523.55289308410.0781763711570134.70365149264778.196231281154237
    5
    2025-04-17 00:00:00.0005.934.63544131.29885756111.547208913.94340111359.73528593661.47494877782.684368597354.2302455651570796.17860027264889.743440182154239
    6
    2025-04-18 00:00:00.0005.934.6433-2705.86588946-2306.56800432-384.4280007250.85398416-13677.948265618-2279.65804427301.5641260691557118.23033465262583.175435862154241
    7
    2025-04-19 00:00:00.0005.934.796619.0009995316.141928730.89677381834.5125987395.7216373695.31786874326.7597104691557213.95197202262599.317364593154244
    8
    2025-04-20 00:00:00.0005.934.91533423.5359.86923356119.956411187339.900102552134.024555011711.3415183372015.6076081211559347.97652703262959.186598151154245
    9
    2025-04-21 00:00:00.0005.935.144421.45118.22799272.2784990885.94825179108.09199671113.51149958935.2731331151559456.06852374262977.414590852154247
    10
    2025-04-22 00:00:00.0005.934.94110.01880.01597530.01597530.01597530.0947335290.0947335290.0947335291559456.16325727262977.430566150154247
    11
    2025-04-23 00:00:00.0005.935.325156-423.48920949-361.11911874-8.02486930516.99500512-2141.436374128-47.587474981100.7803803621557314.72688314262616.311447413154250
    12
    2025-04-24 00:00:00.0005.935.35277-1948.71189099-1661.00992569-20.50629537910.94942013-9849.788859342-121.60233159764.9300613711547464.9380238260955.301521723154253
    13
    2025-04-25 00:00:00.0005.935.5451912-6253.6399044-5331.10965462-46.76411977730.59043211-31613.480251897-277.31123028181.4012624121515851.4577719255624.19186716154259
    14
    2025-04-26 00:00:00.0005.935.5954446.139439.206227293.2671856089.52025231232.4929278319.37441065256.4550961981516083.95069973255663.398094393154262
    15
    2025-04-27 00:00:00.0005.935.485338947.36687602.88379641267.14729943720.9669686745085.1009126527514.18348544222065.3341242131561169.05161238263266.281890792154264
    16
    2025-04-28 00:00:00.0005.935.55565-108.19961945-92.38292988-15.3971549850.98396912-547.830774188-91.305129031302.3349368821560621.2208382263173.898960911154265
    17
    2025-04-29 00:00:00.0005.935.57128-729.36118544-622.90769046-25.954487102205.63534184-3693.842604428-153.9101085181219.4175771111556927.37823377262550.991270452154267
    18
    2025-04-30 00:00:00.0005.935.3888-120.71508333-103.3528806-4.30637002539.90725745-612.882581958-25.536774248236.6500366791556314.49565181262447.638389853154270
    19
    2025-05-01 00:00:00.0005.935.4752221.5316466118.296020949.1480104717.84490089108.49540417454.247702087105.8202622781556422.99105598262465.934410791154271
    20
    2025-05-03 00:00:00.0005.935.305222117.844266488.922133249.34699673105.81650022652.90825011355.4276906091556528.80755621262483.778677270154271
    28
    5KB
    122s