StangFAST04 - holder bought from Tensor Marketplace
Updated 2023-08-07
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
›
⌄
-- forked from 01 - overview chart @ https://flipsidecrypto.xyz/edit/queries/b19dde6e-0fa8-4ede-b496-b87d2492f216
--- magic eden v2
--- tensorswap
with
sol_price AS
(
SELECT
date_trunc( 'day' , a.recorded_hour ) AS day
, avg( a.close ) AS price
, a.symbol AS token
FROM
solana.core.fact_token_prices_hourly a
WHERE
a.symbol = 'SOL'
GROUP BY 1 , 3
ORDER BY 1 DESC
)
,
holder AS
(
SELECT
min( a.block_timestamp ) AS min_date
, a.purchaser AS new_user
FROM
solana.core.fact_nft_sales a
JOIN
solana.core.dim_labels b
ON a.mint = b.address
JOIN
sol_price c
ON date_trunc( 'day' , a.block_timestamp ) = c.day
WHERE
b.label ilike '%Clay%'
Run a query to Download Data