superflyexisting-ivory
    Updated 2025-04-05
    with token_prices as (
    select
    date_trunc('day', hour)::date as date,
    symbol,
    median(price) as price_usd
    from ethereum.price.ez_prices_hourly
    where symbol in ('NEP','ENA','SWELL','WETH','KING','SURF','WSTETH','SWETH','USDE','SUSDE','RSWETH','RSETH','SWBTC','PZETH','WEETH')
    and date_trunc('day', hour) >= '2024-12-02'
    group by 1, 2
    ),
    ambient_contract_txns as (
    select tx_hash
    from swell.core.fact_event_logs
    where contract_address = '0xaaaaaaaa82812f0a1f274016514ba2ca933bf24d'
    ),
    transaction_indexes as (
    select
    tx_hash,
    min(event_index) as first_event_index,
    max(event_index) as last_event_index
    from swell.core.ez_decoded_event_logs
    join ambient_contract_txns using (tx_hash)
    group by 1
    ),
    single_event_txns as (
    select
    block_timestamp::date as transaction_date,
    tx_hash,
    ORIGIN_FROM_ADDRESS as wallet_address,
    c.SYMBOL as input_token_symbol,
    decoded_log:"value" / pow(10, DECIMALS) as input_token_amount,
    input_token_amount * price_usd as input_token_amount_usd,
    null as output_token_symbol,
    null as output_token_amount,
    null as output_token_amount_usd
    from swell.core.ez_decoded_event_logs
    Last run: 21 days ago
    WEEK_START
    TOKEN
    WEEKLY_TRANSACTIONS
    WEEKLY_TRADERS
    CUMULATIVE_TRANSACTIONS
    WEEKLY_VOLUME_USD
    CUMULATIVE_VOLUME_USD
    AVG_TRADE_SIZE_USD
    MEDIAN_TRADE_SIZE_USD
    MAX_TRADE_SIZE_USD
    1
    2024-12-23 00:00:00.000SURF111
    2
    2024-12-23 00:00:00.000SWELL6261.1045351241.1045351240.18408918730.21556373730.3219272339
    3
    2024-12-23 00:00:00.000USDe151015
    4
    2024-12-23 00:00:00.000WETH5451813.538193911813.53819391362.707638782173.9705869.8525
    5
    2024-12-23 00:00:00.000151115
    6
    2024-12-30 00:00:00.000SWELL212027140.967325071142.0718601956.7127297650.0129445729139.3146
    7
    2024-12-30 00:00:00.000USDe207354142.4415264094142.441526409276.162768427183.496844936931.020998067
    8
    2024-12-30 00:00:00.0007622
    9
    2025-01-06 00:00:00.000NEP111
    10
    2025-01-06 00:00:00.000SWELL2917569379.5259852699521.597845464323.4319305279.0208476843446.307
    11
    2025-01-06 00:00:00.000USDe191654664.5910521544807.032578563166.14776303913.28645972637.954613703
    12
    2025-01-06 00:00:00.000WETH2271041.630129772855.168323679520.815064885520.8150648851038.4876
    13
    2025-01-06 00:00:00.000ezETH333
    14
    2025-01-06 00:00:00.000rSWELL33324.57721434624.57721434612.28860717312.28860717313.087480382
    15
    2025-01-06 00:00:00.000weETH106104.279411914.279411912.1397059552.1397059553.14252977
    16
    2025-01-06 00:00:00.000241946
    17
    2025-01-13 00:00:00.000ENA32313.53199315413.5319931544.5106643850.307225320412.917542514
    18
    2025-01-13 00:00:00.000NEP536373.41138529373.41138529186.705692645186.705692645367.236330088
    19
    2025-01-13 00:00:00.000SWELL863514214302.34023759623823.93808306166.306281833160.0806721482482.731922481
    20
    2025-01-13 00:00:00.000USDe177712425.6277846417232.660363204346.518254949250.5257594561140.555695872
    ...
    139
    14KB
    10s