brian-terraAB minted sale summary - projects
Updated 2021-11-10Copy Reference Fork
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 ABsales AS (
select DISTINCT
m.token_name,
e.token_id,
m.token_metadata:curation_status::string AS collection,
e.price,
e.platform_fee,
e.creator_fee
from ethereum.nft_events E, ethereum.nft_metadata M
where e.block_timestamp between '2021-07-01' and '2021-08-01'
AND e.event_platform = 'art_blocks'
AND e.event_type = 'sale'
AND e.token_id = m.token_id
)
select replace(regexp_substr(token_name, '(.*) #'),' #','') AS ProjectName,
count(distinct token_name) AS TotalSold,
round(avg(price),3) AS AvgPriceETH,
sum(price) AS totalETHspent,
sum(platform_fee) AS ArtBlocksFeesCollectedETH,
sum(creator_fee) AS CreatorFeesCollectedETH
from ABsales
group by 1
order by 3 desc
Run a query to Download Data