par_rnCAPYBARA 01
    Updated 2024-12-05
    SELECT
    DATE_TRUNC ('day', BLOCK_TIMESTAMP) AS Date,
    COUNT (DISTINCT TX_HASH) AS Swaps,
    COUNT(DISTINCT origin_from_address) AS Swappers,
    SUM(coalesce(amount_in_usd, amount_out_usd)) AS USD_volume
    FROM
    kaia.defi.ez_dex_swaps
    WHERE
    platform = 'capybara'
    AND date >= current_date -30
    GROUP BY
    1
    having
    USD_volume > 0
    QueryRunArchived: QueryRun has been archived