0xHaM-dTop Collection by Sales
    Updated 2025-04-08
    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
    collection,
    count(distinct tx_hash) as n_sales,
    count(distinct buyer_add) as buyers,
    count(distinct seller_add) as sellers,
    sum(price_usd) as sales_volume_usd,
    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,
    from eventTb
    where year(block_timestamp::date) = '2025'
    and collection is not null
    group by 1
    order by 2 desc
    Last run: 15 days ago
    COLLECTION
    N_SALES
    BUYERS
    SELLERS
    SALES_VOLUME_USD
    AVG_PRICE_USD
    MEDIAN_PRICE_USD
    MAX_PRICE_USD
    FLOOR_PRICE_USD
    1
    Wild Forest Units2581721012664124720.7376141131.6907159960.12951495.98133.322494e-20
    2
    Axie16670557451731618041.3125448496.07750801934.84843081392475.241.71763758e-17
    3
    Ragnarok Monsters1497017222341184075.9978669444.8350712581.15171380.5818944897.82202e-19
    4
    Primal HeroZ1438716702816325189.61043288816.21003996.2084132678.6174706421.591185964e-12
    5
    RuniverseItem71651481168154313.3150778812.7538059670.15824376212.13.1118334e-19
    6
    PHZM50237943467335535.6506471878.3278064744.07041085.42.92283987e-12
    7
    Sunflower Land Pass49743399242822176.4239607333.9160204770.789601636.986111162.0871378e-19
    8
    388187299269045.51011322711.6552177770.43121296347301.121.8150644e-19
    9
    Fishing Frenzy Rods3460151783712592.8674606682.8102806211.0846494191.187011132.117537275e-12
    10
    Nyang Kit3339613146892056.749304693.5867197580.60361820.851.436197191e-18
    10
    941B
    21s