rezarwzMoving Averages
    Updated 2025-04-15
    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
    ),
    volume_data AS (
    SELECT
    date_trunc('day', block_timestamp) as date,
    SUM(volume_usd) AS volume,
    count(DISTINCT tx_hash) as tx_count,
    AVG(SUM(volume_usd)) OVER () AS mean_volume,
    STDDEV(SUM(volume_usd)) OVER () AS std_volume
    Last run: 11 days agoAuto-refreshes every 24 hours
    DATE
    7 Day Moving Average
    30 Day Moving Average
    7 Day Moving Average(# of Tx)
    30 Day Moving Average(# of Tx)
    1
    2024-02-29 00:00:00.00049481.75926672449481.7592667244242
    2
    2024-03-01 00:00:00.000176790.528294645176790.528294645239239
    3
    2024-03-02 00:00:00.000172871.538723338172871.538723338238.666238.666
    4
    2024-03-03 00:00:00.000142280.666346655142280.666346655218218
    5
    2024-03-04 00:00:00.000141191.669811664141191.669811664209.8209.8
    6
    2024-03-05 00:00:00.000166994.958393315166994.958393315204.333204.333
    7
    2024-03-06 00:00:00.000184327.644953687184327.644953687193.428193.428
    8
    2024-03-07 00:00:00.000208362.342480916188502.269579142203.428183.25
    9
    2024-03-08 00:00:00.000186420.228699412184280.295276131155.857174.333
    10
    2024-03-09 00:00:00.000182963.210514309179935.708977018135.285166.3
    11
    2024-03-10 00:00:00.000195460.849357155176122.600989701127160.09
    12
    2024-03-11 00:00:00.000204393.755788607178059.553298214115.428154.75
    13
    2024-03-12 00:00:00.000186239.494788297177357.401067536104.285150.461
    14
    2024-03-13 00:00:00.000155425.875147308169876.76005049893.285143.357
    15
    2024-03-14 00:00:00.000151615.096527566171288.25548840692140.666
    16
    2024-03-15 00:00:00.000144465.05371734166861.1270941691.714138.187
    17
    2024-03-16 00:00:00.000136579.804559876162083.2777464384.857132.764
    18
    2024-03-17 00:00:00.000138480.785619199161484.11723450587.571131.888
    19
    2024-03-18 00:00:00.000131559.25833558160927.86568040195.142132.789
    20
    2024-03-19 00:00:00.000114145.061520585155233.082226103100.142132.85
    ...
    182
    14KB
    1s