Updated 8 hours ago
    SELECT
    DATE_TRUNC('day', BLOCK_TIMESTAMP) AS swap_date,
    COUNT(*) AS daily_swaps,
    sum(amount_in_usd) as volume_swapped,
    count(distinct swapper) as active_swappers
    FROM
    aptos.defi.ez_dex_swaps
    WHERE
    BLOCK_TIMESTAMP >= DATEADD(day, -{{days}}, CURRENT_DATE) and block_timestamp<current_date
    GROUP BY
    swap_date
    ORDER BY
    swap_date
    Last run: about 8 hours ago
    SWAP_DATE
    DAILY_SWAPS
    VOLUME_SWAPPED
    ACTIVE_SWAPPERS
    1
    2025-04-21 00:00:00.0001754055407436.248173125298
    2
    2025-04-22 00:00:00.0001928436382064.269410225851
    3
    2025-04-23 00:00:00.00020136412786858.58046175653
    4
    2025-04-24 00:00:00.0002003227611873.64407345543
    5
    2025-04-25 00:00:00.0002014315606835.678138675429
    6
    2025-04-26 00:00:00.0002142925121804.93273155120
    7
    2025-04-27 00:00:00.0002303914463764.213415964487
    7
    398B
    2s