Afonso_Diazby symbol and event
    Updated 2025-04-10
    with

    pricet as (
    select
    hour::date as dt,
    token_address,
    avg(price) as token_price_usd
    from
    aptos.price.ez_prices_hourly
    where
    token_address != '0x4e1854f6d332c9525e258fb6e66f84b6af8aba687bbcb832a24768c4e175feec::abtc::ABTC'
    and dt >= '2024-08-27'
    group by 1, 2

    union all

    select
    hour::date as dt,
    token_address,
    avg(price) as token_price_usd
    from
    aptos.price.ez_prices_hourly
    where
    token_address = '0x4e1854f6d332c9525e258fb6e66f84b6af8aba687bbcb832a24768c4e175feec::abtc::ABTC'
    and dt >= '2024-10-18'
    group by 1, 2

    union all

    select
    hour::date as dt,
    '0x4e1854f6d332c9525e258fb6e66f84b6af8aba687bbcb832a24768c4e175feec::abtc::ABTC' as token_address,
    avg(price) as token_price_usd,
    from
    crosschain.price.ez_prices_hourly
    where
    Last run: about 2 months ago
    EVENT_NAME
    SYMBOL
    TRANSACTIONS
    USERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    BorrowAPT51233935835446.852592269991.107133969
    2
    BorrowUSDC209010964979006.270235032382.29965083
    3
    BorrowUSDT10336821662152.359742171609.053591232
    4
    BorrowaBTC2920249125714978.42561628806.499460827
    4
    237B
    29s