BlockTrackerMonthly swap volume
    Updated 5 days ago
    select
    date_trunc('month', block_timestamp) as date,
    sum(coalesce(from_amount_usd, to_amount_usd)) as swap_volume ,
    count(distinct tx_id) as n_swaps,
    count(distinct from_address) as n_swappers,
    sum(LIQ_FEE_CACAO_USD) as swap_fee ,
    avg(case when block_timestamp >= '2023-05-07' then SWAP_SLIP_BP else 0 end) as AVG_SWAP_SLIP_BP
    from maya.defi.fact_swaps
    where tx_id not in (select tx_id from maya.defi.fact_refund_events)
    group by 1
    order by 2 desc



    Last run: 5 days ago
    DATE
    SWAP_VOLUME
    N_SWAPS
    N_SWAPPERS
    SWAP_FEE
    AVG_SWAP_SLIP_BP
    1
    2024-10-01 00:00:00.000229778417.569572767062619107246.8636079447.992161
    2
    2024-11-01 00:00:00.000211416407.74301263928221690817.8214192548.1639
    3
    2025-01-01 00:00:00.000182272111.90578571457288782553.9620791098.138157
    4
    2025-02-01 00:00:00.000159391416.525232752562159121868.9467621038.340736
    5
    2024-03-01 00:00:00.000146907888.61474349391888160216.0434136445.313721
    6
    2024-12-01 00:00:00.000146538956.03787452099199963120.7189728118.061115
    7
    2023-11-01 00:00:00.000113877519.265621347754529476555.49178442610.386571
    8
    2024-08-01 00:00:00.000112788087.61239739098197579380.4275023089.270361
    9
    2025-03-01 00:00:00.000106299145.0366153835596293759.827228488.438612
    10
    2023-12-01 00:00:00.00094533699.2689881261113166248032.6333396448.518278
    11
    2024-09-01 00:00:00.00079942321.346973141442205840826.7496296588.309077
    12
    2024-04-01 00:00:00.00079172031.6239846270941864109136.45642045410.751401
    13
    2024-05-01 00:00:00.00065054871.1584355273542430126084.50093674715.035669
    14
    2024-02-01 00:00:00.00048815862.520507317661194091526.8207889267.405913
    15
    2024-01-01 00:00:00.00048469086.700594421339157178088.784930226.011879
    16
    2024-07-01 00:00:00.00045354072.631730521638207536042.88983302211.015663
    17
    2024-06-01 00:00:00.00040955684.398366817452222660854.74606150615.439432
    18
    2023-10-01 00:00:00.00011290284.1050871617967023633.6110026969.9313
    19
    2023-08-01 00:00:00.0008499347.78612944493742516388.4775429577.725556
    20
    2023-06-01 00:00:00.0006026298.290273969303866477.442067673.373972
    25
    2KB
    2s