N_SALES | BUYERS | SELLERS | N_COLLECTION | SALES_VOLUME_USD | AVG_PRICE_USD | MEDIAN_PRICE_USD | MAX_PRICE_USD | FLOOR_PRICE_USD | |
---|---|---|---|---|---|---|---|---|---|
1 | 165066 | 25865 | 31842 | 93 | 11454749.6076018 | 29.57453464 | 1.3494 | 116586.01959375 | 2.35714e-20 |
0xHaM-dtotal
Updated 2025-04-08
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
35
›
⌄
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
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,
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'
Last run: 17 days ago
1
89B
17s