RayyykNumber of flippers that sold their NFT in less than a week
Updated 2022-09-15Copy Reference Fork
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 flow_buyer as (select block_timestamp::date as purchase_date,
nft_collection,
buyer
from flow.core.fact_nft_sales
where tx_succeeded = 'TRUE'),
flow as (select date_trunc('day', block_timestamp) as day,
count(distinct(seller)) as flow_flipper_count
from flow.core.fact_nft_sales a
join flow_buyer b on a.seller = b.buyer and a.nft_collection = b.nft_collection
where datediff(day, a.block_timestamp, purchase_date) <= 7
group by 1),
optimism_buyer as (select block_timestamp::date as purchase_date,
nft_address,
buyer_address
from optimism.core.ez_nft_sales
where event_type = 'sale'
and price_usd > 0),
optimism as (select date_trunc('day', block_timestamp) as day,
count(distinct(seller_address)) as optimism_flipper_count
from optimism.core.ez_nft_sales a
join optimism_buyer b on a.seller_address = b.buyer_address and a.nft_address = b.nft_address
where datediff(day, a.block_timestamp, purchase_date) <= 7
group by 1),
algo_buyer as (select block_timestamp::date as purchase_date,
nft_asset_id,
purchaser
from flipside_prod_db.algorand.nft_sales),
algo as (select date_trunc('day', block_timestamp) as day,
count(distinct(a.nft_asset_id)) as algo_flipper_count
from flipside_prod_db.algorand.nft_sales a
join algo_buyer b on a.nft_asset_id = b.nft_asset_id
Run a query to Download Data