N_SALES | BUYERS | SELLERS | N_COLLECTION | SALES_VOLUME_USD | AVG_PRICE_USD | |
---|---|---|---|---|---|---|
1 | 508508 | 45886 | 54619 | 94 | 30560789.162297 | 25.346316761 |
feyikemiTotals
Updated 2025-04-07
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
›
⌄
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,
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
count(distinct tx_hash) as n_sales,
count(distinct buyer) as buyers,
count(distinct seller) as sellers,
count(distinct collection) n_collection,
sum(nft_Price_usd) as sales_volume_usd,
avg(nft_price_usd) as avg_price_usd
from nft_txns
Last run: about 2 months ago
1
54B
42s