bitereumSolana trader trades
Updated 2023-12-01
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 purchasert as (
select
block_timestamp,
purchaser,
mint,
sales_amount,
marketplace,
tx_id,
rank() over(partition by mint order by block_timestamp) as nft_sub_id
from solana.nft.fact_nft_sales
where purchaser='{{trader}}'
and succeeded),
sellert as (
select
block_timestamp,
Seller,
mint,
sales_amount,
marketplace,
tx_id,
rank() over(PARTITION BY mint ORDER BY block_timestamp) as nft_sub_id
from solana.nft.fact_nft_sales
where Seller='{{trader}}'
and succeeded),
finalt as (
select
p.block_timestamp as buy_date,
s.block_timestamp as sell_date,
p.mint as mint,
p.nft_sub_id as nft_sub_id,
purchaser,
s.sales_amount - p.sales_amount as net_profit,
DATEDIFF(hour, p.block_timestamp, s.block_timestamp ) as trade_time,
Run a query to Download Data