aureasarsanedesthetis market swaps
    Updated 11 hours ago
    WITH info AS (
    SELECT
    block_timestamp,
    tx_hash,
    event_data:amount_out as amount_out,
    event_data:to_token as to_token
    FROM aptos.core.fact_events
    WHERE
    payload_function = '0x579cbb3fe53a17cb093b89b0ef822ad3d2db6a0e3b45f2e1e06e74bb06a19831::thetis_swap::router_entry'
    AND event_module = 'liquidity_pool'
    AND event_resource = 'SwapEvent'
    AND success = TRUE
    ),
    swappers AS (
    SELECT
    DISTINCT sender,
    MIN(block_timestamp) AS debut
    FROM aptos.core.fact_transactions
    WHERE tx_hash IN (SELECT DISTINCT tx_hash FROM info)
    GROUP BY 1
    ),
    active_swappers AS (
    SELECT
    tx_hash,
    sender AS swapper
    FROM aptos.core.fact_transactions
    WHERE tx_hash IN (SELECT DISTINCT tx_hash FROM info)
    ),
    daily_metrics AS (
    SELECT
    DATE_TRUNC('day', i.block_timestamp) AS day,
    COUNT(DISTINCT i.tx_hash) AS daily_swaps,
    --COUNT(DISTINCT a.swapper) AS daily_active_swappers,
    --COUNT(DISTINCT CASE WHEN s.debut >= DATE_TRUNC('day', i.block_timestamp)
    -- AND s.debut < DATE_TRUNC('day', i.block_timestamp) + INTERVAL '1 day'
    -- THEN a.swapper END) AS new_swappers,
    Last run: about 11 hours ago
    DAY
    DAILY_SWAPS
    DAILY_VOLUME_USD
    AVG_VOLUME_USD
    CUMULATIVE_SWAPS
    CUMULATIVE_VOLUME_USD
    1
    2025-04-27 00:00:00.0001861529.9330483118.22544649659625734548.125856562
    2
    2025-04-26 00:00:00.0002471833.0528788027.42126671659439733018.192808252
    3
    2025-04-25 00:00:00.0003602862.2982600297.950828559192731185.13992945
    4
    2025-04-24 00:00:00.0003553197.682565969.00755652458832728322.84166942
    5
    2025-04-23 00:00:00.0004353576.1221316018.22097041758477725125.159103461
    6
    2025-04-22 00:00:00.0004453566.1299565218.01377518358042721549.036971859
    7
    2025-04-21 00:00:00.0002571885.7656650647.33760959257597717982.907015338
    8
    2025-04-20 00:00:00.0002482032.5972393488.1959566157340716097.141350274
    9
    2025-04-19 00:00:00.000157800.1924340325.09676709657092714064.544110926
    10
    2025-04-18 00:00:00.000133881.8782860026.63066380556935713264.351676894
    11
    2025-04-17 00:00:00.0002541806.7514327727.11319461756802712382.473390892
    12
    2025-04-16 00:00:00.0007836878.1829204368.78439708956548710575.72195812
    13
    2025-04-15 00:00:00.0004862855.8425582165.87621925655765703697.539037684
    14
    2025-04-14 00:00:00.0006414754.1864931527.41682760255279700841.696479468
    15
    2025-04-13 00:00:00.0005334759.0037713818.92871251754638696087.509986316
    16
    2025-04-12 00:00:00.0002592705.89410582410.4474675954105691328.506214936
    17
    2025-04-11 00:00:00.0003312564.1488620727.74667329953846688622.612109112
    18
    2025-04-10 00:00:00.0005974544.0179916497.61142042253515686058.46324704
    19
    2025-04-09 00:00:00.00012928763.0943319176.78258075252918681514.445255391
    20
    2025-04-08 00:00:00.00010007672.6904349617.67269043551626672751.350923474
    75
    6KB
    53s