lindyycautious-lavender
    Updated 2025-02-21
    --this query calculate daily swap metrics , active users
    with AERODROME_ACTIVITIES AS
    (
    SELECT
    BLOCK_TIMESTAMP :: date AS date,
    count ( DISTINCT TX_HASH) as aero_swap,
    count ( DISTINCT ORIGIN_FROM_ADDRESS) as active_users,
    sum(AMOUNT_IN_USD) as total_volume
    from base.defi.ez_dex_swaps
    where
    BLOCK_TIMESTAMP :: date >= '2024-01-01'
    and PLATFORM = 'aerodrome'
    group by date
    )
    SELECT
    date,
    aero_swap,
    active_users,
    total_volume
    from
    AERODROME_ACTIVITIES
    order by
    date desc
    ;
    Last run: 2 months ago
    DATE
    AERO_SWAP
    ACTIVE_USERS
    TOTAL_VOLUME
    1
    2025-02-20 00:00:00.0001115581394826939738.05
    2
    2025-02-19 00:00:00.0001119991078022267986.64
    3
    2025-02-18 00:00:00.0001312511169524962956.62
    4
    2025-02-17 00:00:00.0001247561012221018603.27
    5
    2025-02-16 00:00:00.000118539805311270888.58
    6
    2025-02-15 00:00:00.000110904912313610134.04
    7
    2025-02-14 00:00:00.0001011851068730200863.81
    8
    2025-02-13 00:00:00.000875161088132687901.97
    9
    2025-02-12 00:00:00.0001096491111637617584.42
    10
    2025-02-11 00:00:00.0001024281107837246372.84
    11
    2025-02-10 00:00:00.0001257271041334299508.53
    12
    2025-02-09 00:00:00.000125099982329320235.91
    13
    2025-02-08 00:00:00.000116497964625053677.95
    14
    2025-02-07 00:00:00.0001283471157744881846.86
    15
    2025-02-06 00:00:00.0001282281256655893564.04
    16
    2025-02-05 00:00:00.0001479341171951314821.85
    17
    2025-02-04 00:00:00.0001213881211270976972.02
    18
    2025-02-03 00:00:00.00016335016594166258961.31
    19
    2025-02-02 00:00:00.0001366851484678497072.69
    20
    2025-02-01 00:00:00.0001139111322056292990.37
    ...
    417
    21KB
    8s