Flipside TeamTest Staking - Over Time
    Updated 2 hours ago
    with
    -------------------- Staking Transactions --------------------
    transactions as (
    select
    ft.value:"STAKING_TIMESTAMP" as staking_timestamp,
    ft.value:"UNLOCK_TIME" as unlock_time,
    ft.value:"STAKED_AMOUNT" as staked_amount
    from
    (
    select
    livequery.live.udf_api (
    'https://flipsidecrypto.xyz/api/v1/queries/ba6e806a-95d9-4050-bcbe-fc52b19a9683/data/latest'
    ):data as data
    ) lq,
    table(flatten(input => lq.data)) ft
    ),
    -------------------- Dates --------------------
    dates as (
    select
    date_day as date
    from
    crosschain.core.dim_dates
    where
    date_day between '2024-04-01' and (current_date - 1)
    group by
    date
    ),
    -------------------- Staking --------------------
    inflows as (
    select
    staking_timestamp::date as date,
    sum(staked_amount) as volume,
    from
    transactions
    group by
    date
    Last run: about 2 hours agoAuto-refreshes every 6 hours
    Date
    Staked
    Total Staked
    Withdrawn
    Total Withdrawn
    Total BTC Staked
    1
    2025-05-30 00:00:00.000175.4212777752765.90806373-179.8442777-47727.468780075038.43928366
    2
    2025-05-29 00:00:00.000193.404400352590.48678596-481.09451-47547.624502375042.86228359
    3
    2025-05-28 00:00:00.000199.597752397.08238566-0.56328528-47066.529992375330.55239329
    4
    2025-05-27 00:00:00.000401.2725995652197.48468566-5.06257745-47065.966707095131.51797857
    5
    2025-05-26 00:00:00.00050.0587222951796.2120861-777.40280199-47060.904129644735.30795646
    6
    2025-05-25 00:00:00.0001.0069570851746.15336381-0.12033561-46283.501327655462.65203616
    7
    2025-05-24 00:00:00.0001.3158570851745.14640673-1805.58438351-46283.380992045461.76541469
    8
    2025-05-23 00:00:00.00021.7276921451743.83054965-50.0403285-44477.796608537266.03394112
    9
    2025-05-22 00:00:00.000446.9223031751722.10285751-439.50265884-44427.756280037294.34657748
    10
    2025-05-21 00:00:00.0000.1449530751275.18055434-0.36808363-43988.253621197286.92693315
    11
    2025-05-20 00:00:00.0003.0476973651275.03560127-12.06135749-43987.885537567287.15006371
    12
    2025-05-19 00:00:00.00051.2314374851271.98790391-70.12-43975.824180077296.16372384
    13
    2025-05-18 00:00:00.00021.4449400951220.75646643-2.1634371-43905.704180077315.05228636
    14
    2025-05-17 00:00:00.000709.3874007851199.31152634-0.35934778-43903.540742977295.77078337
    15
    2025-05-16 00:00:00.00012.2186067650489.92412556-700.66045177-43903.181395196586.74273037
    16
    2025-05-15 00:00:00.0001005.6017935550477.7055188-1173.0727871-43202.520943427275.18457538
    17
    2025-05-14 00:00:00.00054.5083144749472.10372525-0.5019-42029.448156327442.65556893
    18
    2025-05-13 00:00:00.0000.1354360149417.59541078-9.0958171-42028.946256327388.64915446
    19
    2025-05-12 00:00:00.000108.3204767249417.45997477-100.05-42019.850439227397.60953555
    20
    2025-05-11 00:00:00.00050.021787149309.13949805-50.38413328-41919.800439227389.33905883
    ...
    425
    38KB
    211s