BlockTrackerweekly swap volume
    Updated 3 days ago
    select
    date_trunc('week', 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: 3 days ago
    DATE
    SWAP_VOLUME
    N_SWAPS
    N_SWAPPERS
    SWAP_FEE
    AVG_SWAP_SLIP_BP
    1
    2025-02-24 00:00:00.000126131481.7665194350178076322.3121142498.377142
    2
    2024-11-11 00:00:00.00075484215.65707351864770330105.0409472728.068362
    3
    2024-10-07 00:00:00.00074281153.23285092172286444411.5049718558.052552
    4
    2025-01-20 00:00:00.00069602110.543039923187117834012.2463015078.381747
    5
    2024-10-28 00:00:00.00057769918.00471891478373225626.7968945567.948932
    6
    2024-12-02 00:00:00.00055961786.19548561896178920716.9922714178.062616
    7
    2024-11-18 00:00:00.00050521460.8560441394254319686.2125871757.896999
    8
    2024-10-21 00:00:00.00049456638.28935421727665016049.1714750597.868219
    9
    2024-03-11 00:00:00.00047295859.8998739907573653177.7767121275.075156
    10
    2024-11-25 00:00:00.00046075874.2268441474273120754.2069069058.399492
    11
    2023-11-13 00:00:00.00044393781.6455753115562344135005.65218435110.783153
    12
    2025-01-27 00:00:00.00041927425.442287417855103743093.7681972638.45061
    13
    2024-11-04 00:00:00.00036856468.3833391492168919206.2273046238.235712
    14
    2025-01-06 00:00:00.00036330276.1863811591581517973.1884732727.940908
    15
    2024-12-09 00:00:00.00036296371.3312791358860414820.6897669818.046486
    16
    2024-03-04 00:00:00.00036278463.4454552859965639845.4646383225.805764
    17
    2025-01-13 00:00:00.00035400768.97011031621280112845.3268266478.052956
    18
    2024-08-19 00:00:00.00035146298.6602162800550722886.293568339.009417
    19
    2023-11-06 00:00:00.00032464803.2712532114411841222838.14697705411.797446
    20
    2024-04-08 00:00:00.00032397948.0353217925969462123.6938797449.004538
    ...
    102
    8KB
    2s