Ali3NNew & Total $KET Traders in Avalanche DEXs Over Time
    Updated 1 day ago
    with pricet as (
    select date_trunc (day,block_timestamp) as day,
    '0xffff003a6bad9b743d658048742935fffe2b6ed7' as token_address,
    'KET' as symbol,
    '18' as decimals,
    avg (amount_in_usd/amount_out) as USDPrice
    from avalanche.defi.ez_dex_swaps
    where (symbol_in = 'WAVAX' or symbol_in ilike 'USDC')
    and (symbol_out = 'KET' or token_out = '0xffff003a6bad9b743d658048742935fffe2b6ed7')
    and block_timestamp >= '2025-02-05'
    group by 1,2,3,4 having USDPrice < 10

    union all

    select hour::date as day,
    token_address,
    'USDC' as symbol,
    decimals,
    avg (price) as usdprice
    from avalanche.price.ez_prices_hourly
    where token_address ilike '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E'
    group by 1,2,3,4),

    SimpleSwap as (
    SELECT
    block_timestamp,
    tx_hash,
    decoded_log:maker as maker,
    decoded_log:makerAsset as makerAsset,
    decoded_log:makerAmountReceived as makerAmountReceived,
    decoded_log:taker as taker,
    decoded_log:takerAsset as takerAsset,
    decoded_log:takerAmountReceived as takerAmountReceived,
    decoded_log
    FROM
    avalanche.core.ez_decoded_event_logs
    Last run: 1 day agoAuto-refreshes every 24 hours
    DATE
    NEW_TRADERS
    CUMULATIVE_TRADERS
    1
    2025-05-27 00:00:00.0001223140
    2
    2025-05-26 00:00:00.0002423128
    3
    2025-05-25 00:00:00.0002323104
    4
    2025-05-24 00:00:00.0001923081
    5
    2025-05-23 00:00:00.0002723062
    6
    2025-05-22 00:00:00.0006723035
    7
    2025-05-21 00:00:00.0002722968
    8
    2025-05-20 00:00:00.0002822941
    9
    2025-05-19 00:00:00.0001522913
    10
    2025-05-18 00:00:00.0002822898
    11
    2025-05-17 00:00:00.0002622870
    12
    2025-05-16 00:00:00.0004822844
    13
    2025-05-15 00:00:00.0005122796
    14
    2025-05-14 00:00:00.0003922745
    15
    2025-05-13 00:00:00.0004122706
    16
    2025-05-12 00:00:00.0009922665
    17
    2025-05-11 00:00:00.0002122566
    18
    2025-05-10 00:00:00.0004322545
    19
    2025-05-09 00:00:00.0005922502
    20
    2025-05-08 00:00:00.0004322443
    ...
    133
    5KB
    117s