mattkstewSolana NFT Traders 2.5
Updated 2023-04-23
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 tab1 as (
select
purchaser,
mint,
sales_amount as bought_amount
from solana.core.fact_nft_sales
)
,
tab2 as (
select
Seller,
mint,
sales_amount as sold_amount
from solana.core.fact_nft_sales
)
, tab3 as (
select
purchaser,
sold_amount - bought_amount as net_profit
from tab1 left outer join tab2 on
purchaser = seller and tab1.mint = tab2.mint
where bought_amount is not null
and sold_amount is not null
)
select
avg(net_profit) as "Average Profit" ,
median(net_profit) as "Median Profit"
from tab3
where net_profit > 0
Run a query to Download Data