rezarwzTotal volume and # of trades
    Updated 18 hours ago
    with all_trades as (
    select
    tr1.tx_hash,
    lo.block_timestamp,
    tr1.symbol as in_token,
    tr2.symbol as out_token,
    tr1.AMOUNT_USD as amount_in,
    tr2.AMOUNT_USD as amount_out,
    lo.decoded_log:taker as taker,
    CASE
    when amount_in is not null then amount_in
    else amount_out
    end as volume_usd,
    CASE
    WHEN in_token < out_token THEN in_token || '-' || out_token
    ELSE out_token || '-' || in_token
    END AS Pairs_trade
    from
    blast.core.ez_decoded_event_logs lo
    left join blast.core.ez_token_transfers tr1 on lo.tx_hash = tr1.tx_hash
    left join blast.core.ez_token_transfers tr2 on tr1.tx_hash = tr2.tx_hash
    where
    lo.contract_address = '0xb1a49c54192ea59b233200ea38ab56650dfb448c'
    and lo.event_name = 'OrderComplete'
    and tr1.from_Address = tr1.origin_from_address
    and tr1.to_Address = '0xb1a49c54192ea59b233200ea38ab56650dfb448c'
    and tr2.from_Address = '0xb1a49c54192ea59b233200ea38ab56650dfb448c'
    and tr2.to_Address = tr2.origin_from_address
    )
    SELECT
    date_trunc('{{Time_frame}}', block_timestamp) as date,
    sum(volume_usd) as "Volume(USD)",
    sum(sum(volume_usd)) over(
    order by
    date_trunc('{{Time_frame}}', block_timestamp) asc
    ) as "Total Volume(USD)",
    Last run: about 18 hours agoAuto-refreshes every 24 hours
    DATE
    Volume(USD)
    Total Volume(USD)
    # of Trades
    # of Total Trades
    1
    2024-07-03 00:00:00.000253625.270021439487744924.604095154240809
    2
    2024-07-04 00:00:00.000810405.738040727488555330.342135434241243
    3
    2024-07-11 00:00:00.000630964.683149806493758622.157694328243945
    4
    2024-02-29 00:00:00.00049481.75926672449481.7592667244242
    5
    2024-07-02 00:00:00.00065445.013134673487491299.33407350240655
    6
    2024-06-28 00:00:00.000152454.509134679487175863.46299887240442
    7
    2024-07-06 00:00:00.000497506.570910821490238935.337762254242108
    8
    2024-04-20 00:00:00.0002443733.71785242177583764.436212205090991
    9
    2024-05-23 00:00:00.0003939876.0608526303528939.9830351494161711
    10
    2024-05-29 00:00:00.0001233243.82911666351144761.8701581075182378
    11
    2024-10-18 00:00:00.000847.564955522500059722.79856613248795
    12
    2024-08-24 00:00:00.00051.28039187500057925.8673652248742
    13
    2024-09-11 00:00:00.00025.607977902500057989.0466911248750
    14
    2024-11-11 00:00:00.00040.290907085500059789.3871131248799
    15
    2024-03-06 00:00:00.000288323.7643159181290293.514675811281354
    16
    2024-07-19 00:00:00.000732122.658525651496089958.907274706245704
    17
    2024-03-22 00:00:00.00058540.770149533286276.098382871813240
    18
    2024-07-20 00:00:00.0001084546.08853173497174504.9958061053246757
    19
    2024-03-12 00:00:00.000168931.5742993972305646.21387796991956
    20
    2024-04-23 00:00:00.0002849250.6863035194075191.281287251299547
    ...
    182
    13KB
    1s