0xHaM-dOver Time
    Updated 1 day ago
    with eventTb as (
    select
    block_timestamp,
    tx_hash,
    tr.from_address as seller_add,
    tr.to_address as buyer_add,
    tr.contract_address as contract_address,
    tr.name as collection,
    p.symbol,
    token_id,
    log.decoded_log:acceptedSettlePrice / 1e18 as nft_price,
    (log.decoded_log:acceptedSettlePrice / 1e18)*price as amount_usd,
    ((log.decoded_log:acceptedSettlePrice / 1e18)*price)/quantity as price_usd,
    log.decoded_log:settleToken as token_add
    from ronin.nft.ez_nft_transfers tr
    join ronin.core.ez_decoded_event_logs log using (tx_hash, block_timestamp)
    left join ronin.price.ez_prices_hourly p on date_trunc('hour', block_timestamp) = hour and log.decoded_log:settleToken = token_address
    where event_name = 'OrderMatched'
    and decoded_log:order[0]:extraData[0][2] = token_id
    and tx_succeeded
    )
    select
    date_trunc('d', block_timestamp) as date,
    count(distinct tx_hash) as n_sales,
    count(distinct buyer_add) as buyers,
    count(distinct seller_add) as sellers,
    count(distinct collection) n_collection,
    sum(price_usd) as sales_volume_usd,
    sales_volume_usd/n_collection as avg_vol_per_collection,
    n_sales/n_collection as avg_n_sales_per_collection,
    avg(price_usd) as avg_price_usd,
    median(price_usd) as median_price_usd,
    max(price_usd) as max_price_usd,
    min(price_usd) as floor_price_usd,
    sum(n_sales) over (order by date) as total_n_sales,
    sum(sales_volume_usd) over (order by date) as total_volume_usd
    Last run: 1 day ago
    DATE
    N_SALES
    BUYERS
    SELLERS
    N_COLLECTION
    SALES_VOLUME_USD
    AVG_VOL_PER_COLLECTION
    AVG_N_SALES_PER_COLLECTION
    AVG_PRICE_USD
    MEDIAN_PRICE_USD
    MAX_PRICE_USD
    FLOOR_PRICE_USD
    TOTAL_N_SALES
    TOTAL_VOLUME_USD
    1
    2025-04-03 00:00:00.0005342784294918650.246368546380.61727282710.89795911.5624590010.150211821184.02656.8274e-1315767611192512.3221809
    2
    2025-04-02 00:00:00.000223787214106990402.9620757261310.1878561732.4202910.9340786260.12757402913200.34964.081182647e-2015714211173862.0758124
    3
    2025-04-01 00:00:00.0002813994164668108434.0709026611594.61868974541.36764710.8727635520.10786621320.8095184.53915101e-2015490511083459.1137367
    4
    2025-03-31 00:00:00.000167373510776685103.0904549191289.44076446825.34848523.1258397980.930900687943.6721.71763758e-1715209210975025.042834
    5
    2025-03-30 00:00:00.000170071110275952276.100916149886.03560874828.81355912.8854081630.3556382088.7773.928112808e-2015041910889921.9523791
    6
    2025-03-29 00:00:00.00016607489386656013.54636543848.69009644625.15151513.999886621.146016351175.49761.815444768e-1714871910837645.8514629
    7
    2025-03-28 00:00:00.00016507709606855998.413194909823.50607639624.26470614.1053937520.65362141290.677857.52535e-2014705910781632.3050975
    8
    2025-03-27 00:00:00.000183487310067063504.363022027907.20518602926.212.4007738770.926210323510.23752.01454555e-1714540910725633.8919026
    9
    2025-03-26 00:00:00.0002031993109763121525.479664471928.9758676932.23809527.0718377510.8522113846235.8094745061.981212764e-1714357510662129.5288806
    10
    2025-03-25 00:00:00.0002883126215876193694.4599262441535.97475288947.26229513.4618476910.798232843535.7282.911725128e-2014154410540604.0492161
    11
    2025-03-24 00:00:00.0002737114813816180422.321608441318.39871489244.86885213.4350687620.6397976959966.345628261.915454629e-1713866110446909.5892899
    12
    2025-03-23 00:00:00.0002766120611715742798.144006982750.84463170148.5263167.9743141430.73299441493977.81133.20187389e-2013592410366487.2676814
    13
    2025-03-22 00:00:00.0002898117213125647388.474046166846.22275082451.757.3952050630.5740593151369.8493519611.546452e-1913315810323689.1236744
    14
    2025-03-21 00:00:00.0002987115914075067312.0983699971346.241967459.7410.5290314991.0005356110638.3521458651.817790865e-1713026010276300.6496283
    15
    2025-03-20 00:00:00.000165769310025852580.731876256906.56434269428.56896611.7788377860.44580555022777.42486.28609278e-2012727310208988.5512583
    16
    2025-03-19 00:00:00.00012216739495659536.7920015481063.15700002821.80357120.3405507350.50616642807.0421.83152249e-1712561610156407.819382
    17
    2025-03-18 00:00:00.00010845847555145537.841255439892.89884814621.25490219.101443480.81544748757588.046.02848376e-1812439510096871.0273805
    18
    2025-03-17 00:00:00.00012195578825437381.227752724692.24495838422.57407410.7232437621.5817023136.497306873.31230315e-2012331110051333.186125
    19
    2025-03-16 00:00:00.00013255537895452300.845280718968.53417186524.53703719.292086050.318779927444.86866.404523614e-2012209210013951.9583723
    20
    2025-03-15 00:00:00.00013736468345345622.458993913860.80111309325.9056616.6870735161.039661323088.19341.8645648e-171207679961651.11309159
    93
    14KB
    25s