aor67open e 5
Updated 2022-09-22
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
WITH town_star AS (
SELECT * FROM ethereum.core.ez_nft_sales
WHERE event_type = 'sale'
AND block_timestamp::DATE >= '2022-01-01'
AND project_name IN ('town star')
AND buyer_address <> '0x0000000000000000000000000000000000000000'
)
SELECT block_timestamp::DATE AS DAY,
COUNT(DISTINCT tx_hash) AS number_of_transactions,
COUNT(DISTINCT buyer_address) AS number_of_buyers,
COUNT(DISTINCT seller_address) AS number_of_sellers,
COUNT(DISTINCT tokenid) AS number_of_nfts,
SUM(price) AS total_sales_amount,
SUM(price_usd) AS total_sales_amount_usd,
SUM(platform_fee) AS platform_fee,
SUM(platform_fee_usd) AS platform_fee_usd,
SUM(tx_fee) AS tx_fee,
SUM(tx_fee_usd) AS tx_fee_usd
FROM town_star
GROUP BY 1
Run a query to Download Data