Sbhn_NPAptos Marketplaces Summary (Past 30 Days)
Updated 2024-11-24
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
with price as ( select
hour::date as datee,
avg(PRICE) as usdprice
from aptos.price.ez_prices_hourly
where symbol = 'APT'
group by 1
)
select DISTINCT platform_name,
count(DISTINCT tx_hash) as "Sales",
count(DISTINCT buyer_address) as "Buyers",
sum(total_price_raw/pow(10,8)) as "Sales Volume $APT",
sum((total_price_raw/pow(10,8))*usdprice) as "Sales Volume USD",
sum((platform_fee_raw/pow(10,8))*usdprice) as "Platform Fees USD",
sum((CREATOR_FEE_RAW/pow(10,8))*usdprice) as "Creator Fees USD",
sum((TOTAL_FEES_RAW/pow(10,8))*usdprice) as "Total Fees USD"
from aptos.nft.fact_nft_sales
join price on block_timestamp::date=datee
where block_timestamp::date >= current_date-30
group by 1
order by 5 DESC
QueryRunArchived: QueryRun has been archived