StangFASTbase of overall - part 2 [ week ]
Updated 2023-11-06
999
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
tab1 AS
(
SELECT
date_trunc( 'day' , a.block_timestamp ) AS "date"
, count( distinct a.buyer_address ) AS "buyers"
, count( distinct a.seller_address ) AS "sellers"
, count( distinct a.tx_hash ) AS "sale count"
, sum( a.price_usd ) AS "sale volume"
, 'Opensea' AS "market"
FROM
avalanche.nft.ez_nft_sales a
WHERE
"date" >= '2023-01-01'
AND "date" <= dateadd( 'day' , -1 , current_date )
AND a.platform_address in (
'0x00000000006c3852cbef3e08e8df289169ede581'
, '0x00000000000001ad428e4906ae43d8f9852d0dd6'
, '0x00000000000000adc04c56bf30ac9d3c0aaf14dc'
)
GROUP BY 1
ORDER BY 1 DESC
)
,
tab2 AS
(
SELECT
date_trunc( 'day' , a.block_timestamp ) AS "date"
, count( distinct a.buyer_address ) AS "buyers"
, count( distinct a.seller_address ) AS "sellers"
, count( distinct a.tx_hash ) AS "sale count"
, sum( a.price_usd ) AS "sale volume"
, 'Joepegs' AS "market"
FROM
Run a query to Download Data