StangFAST012 - marketplace
Updated 2023-10-15
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
degen_ape AS
(
SELECT
a.contract_address AS ca
, a.token_name AS tn
, a.token_id AS ti
FROM
solana.nft.dim_nft_metadata a
WHERE
a.token_name = 'Degen Apes'
)
,
price AS
(
SELECT
date_trunc( 'day' , a.recorded_hour ) AS dt
, avg( a.close ) AS pr
, a.symbol AS sb
FROM
solana.price.fact_token_prices_hourly a
WHERE
a.symbol = 'SOL'
GROUP BY 1 , 3
ORDER BY 1 DESC
)
,
new AS
(
SELECT
a.block_timestamp AS dt
, a.purchaser AS pc
, a.seller AS sl
, a.tx_id AS sc
, a.sales_amount * c.pr AS sv
Run a query to Download Data