Afonso_DiazToken Pairs Overtime
    Updated 2025-04-03
    with

    pricet as (
    select
    hour::date as date,
    symbol,
    decimals,
    token_address,
    avg(price) as token_price_usd
    from
    boba.price.ez_prices_hourly
    group by 1, 2, 3, 4

    union all

    select
    hour::date as date,
    'ETH',
    decimals,
    '0x0000000000000000000000000000000000000000',
    avg(price)
    from
    boba.price.ez_prices_hourly
    where
    token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    group by 1, 2, 3, 4
    ),

    swaps as (

    select
    tx_hash,
    block_timestamp,
    nvl(decoded_log:receiver, origin_from_address) as swapper,
    decoded_log:fromAmount as amount_in_unadj,
    decoded_log:toAmount as amount_out_unadj,
    Last run: 30 days ago
    DATE
    TOKEN_PAIR
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    2024-04-01 00:00:00.000BOBA -> USDC1113.83966367513.839663675
    2
    2024-04-01 00:00:00.000ETH -> BOBA6611.3103795291.885063255
    3
    2024-04-01 00:00:00.000ETH -> DAI112.8284596052.828459605
    4
    2024-04-01 00:00:00.000ETH -> USDC141262.2797884014.448556314
    5
    2024-04-01 00:00:00.000ETH -> USDT8811.9347270251.491840878
    6
    2024-04-01 00:00:00.000ETH -> WETH676734.1444985710.5096193817
    7
    2024-04-01 00:00:00.000USDT -> BOBA1157.69944213257.699442132
    8
    2024-04-01 00:00:00.000USDT -> USDC110.25482895230.2548289523
    9
    2024-05-01 00:00:00.000BOBA -> USDC117.071751257.07175125
    10
    2024-05-01 00:00:00.000ETH -> BOBA226.1882648813.094132441
    11
    2024-05-01 00:00:00.000ETH -> DAI223.1361048171.568052408
    12
    2024-05-01 00:00:00.000ETH -> OLO114.0103455684.010345568
    13
    2024-05-01 00:00:00.000ETH -> USDC113.1272982533.127298253
    14
    2024-05-01 00:00:00.000ETH -> USDT4411.2541177662.813529441
    15
    2024-05-01 00:00:00.000ETH -> WETH3533263.8369749987.538199286
    16
    2024-05-01 00:00:00.000OLO -> BOBA113.7655237763.765523776
    17
    2024-05-01 00:00:00.000USDC -> BNB1152.43571458152.435714581
    18
    2024-05-01 00:00:00.000USDC -> BOBA2236.4599163118.229958155
    19
    2024-05-01 00:00:00.000USDC -> DAI1128.55616143128.556161431
    20
    2024-05-01 00:00:00.000USDC -> USDT1158.95841650258.958416502
    86
    6KB
    3s