Afonso_DiazBy Symbol overtime
    Updated 2025-04-08
    with

    pricet as (
    select
    hour::date as date,
    token_address,
    avg(price) as token_price_usd
    from
    ink.price.ez_prices_hourly
    group by 1, 2
    ),

    txns as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    a.contract_address as token_out,
    b.contract_address as token_in,
    nvl(a.decoded_log:value, a.decoded_log:wad) as amount_out_unadj,
    nvl(b.decoded_log:value, b.decoded_log:wad) as amount_in_unadj
    from
    ink.core.ez_decoded_event_logs a
    join
    ink.core.ez_decoded_event_logs b using (tx_hash, block_timestamp, event_name)
    where
    a.event_name = 'Transfer'
    and nvl(a.decoded_log:from, a.decoded_log:src) = swapper
    and nvl(b.decoded_log:to, b.decoded_log:dst) = swapper
    and tx_succeeded
    and origin_to_address = '0x652e53c6a4fe39b6b30426d9c96376a105c89a95'
    and tx_hash in (select distinct tx_hash from ink.core.ez_decoded_event_logs where event_name = 'Swap')

    union all

    select
    Last run: about 2 months ago
    DATE
    SYMBOL
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    CUMULATIVE_VOLUME_USD
    1
    2025-01-13 00:00:00.000ADUX11327.56475327.56475327.56475
    2
    2025-01-13 00:00:00.000CAT17760256865.0560981231451.215006204256865.056098123
    3
    2025-01-13 00:00:00.000Kraken108451.37168918745.137168919451.371689187
    4
    2025-01-13 00:00:00.000WETH576165422664.964023861733.793340319422664.964023861
    5
    2025-01-13 00:00:00.000Worm1181.891187581.891187581.8911875
    6
    2025-01-13 00:00:00.000XVELO387103164939.080299051426.199173899164939.080299051
    7
    2025-01-20 00:00:00.000ADUX1110.06667761910.066677619337.631427619
    8
    2025-01-20 00:00:00.000CAT2245534454.899647703153.816516284291319.955745826
    9
    2025-01-20 00:00:00.000Kraken31241685.34796490354.3660633842136.719654091
    10
    2025-01-20 00:00:00.000PENK42381.4125312595.353132813381.41253125
    11
    2025-01-20 00:00:00.000SQJAK313.5531214581.1843738193.553121458
    12
    2025-01-20 00:00:00.000USD₮01517051814.900377675343.14503561451814.900377675
    13
    2025-01-20 00:00:00.000WETH1029332216494.591892828210.3931894639159.555916689
    14
    2025-01-20 00:00:00.000XVELO601211129900.37303311216.140387742294839.453332161
    15
    2025-01-20 00:00:00.000iETH4636775.2854078716.854030606775.28540787
    16
    2025-01-27 00:00:00.000CAT69304312.47104590363.418691852295632.426791729
    17
    2025-01-27 00:00:00.000DINERO76287.18771484941.026816407287.187714849
    18
    2025-01-27 00:00:00.000Kraken10321569.75769714915.2403659923706.477351239
    19
    2025-01-27 00:00:00.000SQUIDTARDIO111.906918812e-111.906918812e-111.906918812e-11
    20
    2025-01-27 00:00:00.000USD₮025812986347.268819334334.679336509138162.169197009
    ...
    118
    10KB
    21s