rezarwzDaily bets and volume
    Updated 2025-02-26
    with all_bets as (
    SELECT
    ev.tx_hash as tx_hash,
    ev.block_Timestamp as block_Timestamp,
    DECODED_LOG:fee,
    DECODED_LOG:maker,
    DECODED_LOG:makerAmountFilled / pow(10, 18) as maker_amount,
    DECODED_LOG:makerAssetId,
    DECODED_LOG:taker,
    DECODED_LOG:takerAmountFilled / pow(10, 18) as taker_amount,
    DECODED_LOG:takerAssetId,
    CASE
    WHEN decoded_log:takerAssetId = 0 then decoded_log:takerAmountFilled
    when decoded_log:makerAssetId = 0 then decoded_log:makerAmountFilled
    end / 1e18 as Amount_USD,
    CASE
    WHEN decoded_log:takerAssetId = 0 then decoded_log:makerAssetId
    when decoded_log:makerAssetId = 0 then decoded_log:takerAssetId
    end as assets_id
    FROM
    blast.core.ez_decoded_event_logs ev
    where
    ev.contract_address in(
    '0x739f0331594029064c252559436edce0e468e37a',
    '0x6a3796c21e733a3016bc0ba41edf763016247e72'
    )
    and event_name = 'OrderFilled'
    )
    SELECT
    date_Trunc('{{time_frame}}', block_Timestamp) as date,
    sum(Amount_USD) as "USD volume",
    sum(sum(Amount_USD)) over (order by date_Trunc('{{time_frame}}', block_Timestamp) asc )as "Cumulative USD volume",
    count(tx_hash) as "# of Bets",
    sum(count(tx_hash)) over (order by date_Trunc('{{time_frame}}', block_Timestamp) asc )as "Cumulative # of Bets"
    FROM
    all_bets
    Last run: about 1 month ago
    DATE
    USD volume
    Cumulative USD volume
    # of Bets
    Cumulative # of Bets
    1
    2024-11-25 00:00:00.000535382.40569283550054.56375252728193880
    2
    2024-10-29 00:00:00.0001668639.6413896266128927.23546814102125086
    3
    2025-02-15 00:00:00.00045354.362695908243.927596346271296
    4
    2024-11-13 00:00:00.000333846.27570179989976.75248652660169758
    5
    2025-02-07 00:00:00.00087058.71914495802113.097602390270656
    6
    2024-12-16 00:00:00.000292236.479611490231655.20962191290229214
    7
    2024-11-29 00:00:00.000239017.91492685202381.49835172086201416
    8
    2024-10-10 00:00:00.0001616961.2716543738724051.5237094341652956
    9
    2025-02-05 00:00:00.00013018.68593895710823.1423783164270458
    10
    2024-09-17 00:00:00.000811399.15468216313536923.3662918172218428
    11
    2025-01-28 00:00:00.00010994.70951795506338.0695043182269250
    12
    2024-11-19 00:00:00.000219183.86872481483464.46112451588180912
    13
    2024-12-02 00:00:00.000148396.0607885794047.29410071368206188
    14
    2025-02-17 00:00:00.00020194.285995930891.928296390271450
    15
    2025-02-13 00:00:00.0002119.369895832957.637396384271130
    16
    2024-11-27 00:00:00.000733703.93693384575117.79021951330197636
    17
    2025-01-05 00:00:00.000201528.27226893853154.9658803582250070
    18
    2024-12-05 00:00:00.000212136.7579586533524.13765371144210794
    19
    2024-10-05 00:00:00.0002245564.0995927529314330.185272176639450
    20
    2024-11-18 00:00:00.000144276.7806681264280.59240051536179324
    ...
    178
    12KB
    7s