feyikemiDaily Txns
    Updated 2025-04-07
    WITH Price AS(
    SELECT
    HOUR::date AS Date,
    token_address,
    avg(price) AS price_usd
    FROM ronin.price.ez_prices_hourly
    GROUP BY 1,2
    ),


    NFT_TXNS AS (
    SELECT
    block_timestamp,
    tx_hash,
    from_address AS seller,
    to_address AS buyer,
    name AS collection,
    Quantity,
    decoded_log:acceptedSettlePrice / 1e18 as nft_price,
    (decoded_log:acceptedSettlePrice / 1e18)*price_usd as nft_Price_usd
    from ronin.nft.ez_nft_transfers tr
    join ronin.core.ez_decoded_event_logs log using (tx_hash, block_timestamp)
    left join price p on block_timestamp::date = p.date 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('week', block_timestamp) AS trade_date,
    count(distinct tx_hash) as nft_sales,
    count(distinct buyer) as buyers,
    count(distinct seller) as sellers,
    SUM(Quantity) AS Traded_Items,
    Round(sum(nft_Price_usd), 2) as sale_volume_usd,
    sum(sale_volume_usd) OVER (ORDER BY trade_date) AS Cumulative_Volume
    from nft_txns
    Last run: about 2 months ago
    TRADE_DATE
    NFT_SALES
    BUYERS
    SELLERS
    TRADED_ITEMS
    SALE_VOLUME_USD
    CUMULATIVE_VOLUME
    1
    2025-02-17 00:00:00.00095193106508410203551153292.4725976781.34
    2
    2025-03-31 00:00:00.0001287936105032532475550869.2830519007.94
    3
    2024-11-25 00:00:00.000620446423845745765562532142.4211837693.36
    4
    2024-09-30 00:00:00.0001432734385014175132637537.1637537.1
    5
    2024-10-07 00:00:00.0001581143124982274402838420.641475957.74
    6
    2024-11-04 00:00:00.0001135838624869609010784805.24167278.94
    7
    2025-02-24 00:00:00.00016694589571029552761303268.9927280050.33
    8
    2025-01-27 00:00:00.0009894319149804982541080273.3123247795.87
    9
    2024-12-23 00:00:00.00012794381561106574851018217.9817618394.39
    10
    2025-01-13 00:00:00.00013372440760848259751942659.0621090582.66
    11
    2024-11-18 00:00:00.000439656770890796776963179499.279305550.94
    12
    2024-10-14 00:00:00.0001147934374801701942814324.022290281.76
    13
    2025-01-06 00:00:00.0001152538565225265999809317.6919147923.6
    14
    2024-10-28 00:00:00.0001014836814520644849552634.13382473.74
    15
    2025-01-20 00:00:00.00011180371556824675691076939.922167522.56
    16
    2024-12-09 00:00:00.00018200450669669992991338567.6115398430.29
    17
    2025-02-10 00:00:00.000895127864397657618884942.2624823488.87
    18
    2025-03-17 00:00:00.0001383242864900466051401139.3729376281.97
    19
    2024-11-11 00:00:00.000345566066719913125481958772.736126051.67
    20
    2025-04-07 00:00:00.0008144806306180441781.2230560789.16
    28
    2KB
    40s