Sbhn_NPfresh-yellow
    Updated 2025-01-17
    with price as (
    SELECT hour::date as datee,
    symbol,
    token_address,
    decimals,
    avg(price) as usdprice
    from aptos.price.ez_prices_hourly
    group by 1,2,3,4
    UNION
    SELECT hour::date as datee,
    'USDt' as symbol,
    '0xccd1a84ccea93531d7f165b90134aa0415feb30e8757ab1632dac68c0055f5c2::coins::USDt' as token_address,
    6 as decimals,
    avg(price) as usdprice
    from aptos.price.ez_prices_hourly
    where symbol ='USDT'
    group by 1,2,3,4
    UNION
    SELECT hour::date as datee,
    'thAPT' as symbol,
    '0xfaf4e633ae9eb31366c9ca24214231760926576c7b625313b3688b5e900731f6::staking::ThalaAPT' as token_address,
    decimals,
    avg(price) as usdprice
    from aptos.price.ez_prices_hourly
    where symbol ='APT'
    group by 1,2,3,4
    UNION
    SELECT hour::date as datee,
    'TruAPT' as symbol,
    '0xccd1a84ccea93531d7f165b90134aa0415feb30e8757ab1632dac68c0055f5c2::coins::TruAPT' as token_address,
    decimals,
    avg(price) as usdprice
    from aptos.price.ez_prices_hourly
    where symbol ='APT'
    group by 1,2,3,4)

    Last run: 3 months ago
    TYPE
    DATE
    SYMBOL
    USERS
    USD
    1
    Supply2024-10-01 00:00:00.000WBTC27779761.418197543
    2
    Borrow2024-10-01 00:00:00.000WBTC10564905.777861709
    3
    Repay2024-10-01 00:00:00.000WBTC654799.901531373
    4
    Withdraw2024-10-01 00:00:00.000WBTC11135488.961146992
    5
    Supply2025-01-01 00:00:00.000USDt9310711320.9993106
    6
    Supply2024-12-01 00:00:00.000USDt19524106342.2027762
    7
    Borrow2025-01-01 00:00:00.000USDt2310051206.4872518
    8
    Borrow2024-12-01 00:00:00.000USDt8421709959.500728
    9
    Repay2025-01-01 00:00:00.000USDt2210070065.8029504
    10
    Repay2024-12-01 00:00:00.000USDt4322624524.0357156
    11
    Withdraw2024-12-01 00:00:00.000USDt17626372472.0853768
    12
    Withdraw2025-01-01 00:00:00.000USDt8610929048.907605
    13
    Supply2024-10-01 00:00:00.000WETH853860370.52579254
    14
    Borrow2024-10-01 00:00:00.000WETH1182590077.49338746
    15
    Repay2024-10-01 00:00:00.000WETH22621820.976538391
    16
    Withdraw2024-10-01 00:00:00.000WETH441415359.15256038
    17
    Supply2024-12-01 00:00:00.000APT5491384237.47778716
    18
    Borrow2024-12-01 00:00:00.000APT2426050299.26647996
    19
    Repay2024-12-01 00:00:00.000APT1562694516.21347644
    20
    Withdraw2024-12-01 00:00:00.000APT7341141777.5836427
    ...
    311
    19KB
    54s