datavortexweekly trades and traders
    Updated 8 days ago
    WITH SwapData AS (
    SELECT
    tx_hash,
    origin_from_address,
    block_timestamp,
    DATE_TRUNC('week', block_timestamp) AS swap_week
    FROM
    ink.core.ez_decoded_event_logs
    WHERE
    event_name = 'Swap'
    AND origin_to_address = '0xa8c1c38ff57428e5c3a34e0899be5cb385476507'
    AND block_timestamp IS NOT NULL
    AND tx_succeeded = TRUE
    )

    SELECT
    swap_week AS "WEEK",
    COUNT(DISTINCT origin_from_address) AS "weekly total traders",
    COUNT(DISTINCT tx_hash) AS "weekly total trades",
    SUM(COUNT(DISTINCT origin_from_address)) OVER (ORDER BY swap_week) AS "cumulative total traders",
    SUM(COUNT(DISTINCT tx_hash)) OVER (ORDER BY swap_week) AS "cumulative total trades"
    FROM
    SwapData
    GROUP BY
    swap_week
    ORDER BY
    swap_week;
    Last run: 8 days ago
    WEEK
    weekly total traders
    weekly total trades
    cumulative total traders
    cumulative total trades
    1
    2024-12-23 00:00:00.000217451217451
    2
    2024-12-30 00:00:00.0002189487124065322
    3
    2025-01-06 00:00:00.00020216571442711893
    4
    2025-01-13 00:00:00.00014355251586217144
    5
    2025-01-20 00:00:00.00012154170791801634223
    6
    2025-01-27 00:00:00.0009850312952786665518
    7
    2025-02-03 00:00:00.0002557160993042381617
    8
    2025-02-10 00:00:00.000210409717651463178793
    9
    2025-02-17 00:00:00.000128354663764298225430
    10
    2025-02-24 00:00:00.00057952680170093252231
    11
    2025-03-03 00:00:00.00055112503975604277270
    12
    2025-03-10 00:00:00.00030631422978667291499
    13
    2025-03-17 00:00:00.00059641455384631306052
    14
    2025-03-24 00:00:00.00048551448089486320532
    15
    2025-03-31 00:00:00.0001053826933100024347465
    16
    2025-04-07 00:00:00.000502723772105051371237
    17
    2025-04-14 00:00:00.000237612243107427383480
    18
    2025-04-21 00:00:00.000193412576109361396056
    19
    2025-04-28 00:00:00.0003873109399396129
    19
    972B
    4s