BlockTrackercurrent tvl
    Updated 2024-12-12

    with prices as (
    select
    date_trunc('day', hour) as date,
    symbol,
    median(price) as usd_price
    from aptos.price.ez_prices_hourly
    group by 1 , 2
    union all
    -- thala-apt
    select
    date_trunc('day', hour) as date,
    'thAPT' as symbol,
    median(price) as usd_price
    from aptos.price.ez_prices_hourly
    where symbol = 'APT'
    group by 1 , 2
    union all
    -- TrueFin
    select
    date_trunc('day', hour) as date,
    'TruAPT' as symbol,
    median(price) as usd_price
    from aptos.price.ez_prices_hourly
    where symbol = 'APT'
    group by 1 , 2
    )

    ,
    AmnisFinance as (--amAPT supply
    select
    date,
    'Amnis Finance (amAPT)' as token,
    'amAPT' as symbol,
    sum(amount) as "Amount",
    sum("Amount") over (order by date) as "Supply"
    QueryRunArchived: QueryRun has been archived