StangFAST010 - buy volume
Updated 2024-01-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
a.buyer_address AS "buyers"
, count( distinct date_trunc( 'day' , a.block_timestamp ) ) AS "active day"
, count( distinct a.tx_hash ) AS "buy count"
, sum( a.price_usd ) AS "buy volume"
, count( distinct a.project_name ) AS "collection"
, 'Opensea' AS "market"
FROM
avalanche.nft.ez_nft_sales a
WHERE
a.block_timestamp::date >= '{{start_date}}'
AND a.platform_address in (
'0x00000000006c3852cbef3e08e8df289169ede581'
, '0x00000000000001ad428e4906ae43d8f9852d0dd6'
, '0x00000000000000adc04c56bf30ac9d3c0aaf14dc'
)
GROUP BY 1
ORDER BY 4 DESC
)
,
tab2 AS
(
SELECT
a.buyer_address AS "buyers"
, count( distinct date_trunc( 'day' , a.block_timestamp ) ) AS "active day"
, count( distinct a.tx_hash ) AS "buy count"
, sum( a.price_usd ) AS "buy volume"
, count( distinct a.project_name ) AS "collection"
, 'Joepegs' AS "market"
FROM
QueryRunArchived: QueryRun has been archived