adambalaopensea
Updated 2022-09-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
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with
a as (
select
BLOCK_TIMESTAMP,
TX_HASH ,
SELLER_ADDRESS ,
BUYER_ADDRESS ,
NFT_ADDRESS ,
PROJECT_NAME ,
TOKENID ,
CURRENCY_SYMBOL ,
PRICE ,PRICE_USD
from ethereum.core.ez_nft_sales
where EVENT_TYPE='sale' and PLATFORM_name ='opensea' and BLOCK_TIMESTAMP::date > '2022-01-01'
)
select
BLOCK_TIMESTAMP ::date as date ,
count(distinct TX_HASH) as txs ,
count(distinct BUYER_ADDRESS) as buyers ,
count(distinct SELLER_ADDRESS) as sellers ,
count(distinct TOKENID) as token_id ,
count(distinct NFT_ADDRESS) as collections ,
------------------------------------------
sum(PRICE) as CURRENCY ,
sum(PRICE_USD) as USD ,
---------------------------------------
avg(PRICE) as avg_CURRENCY ,
avg(PRICE_USD) as avg_USD ,
---------------------------------------
SUM(txs) OVER (ORDER BY DATE) AS CUM_txs,
Run a query to Download Data