elsina✅ Curtain collection: Total - single number
Updated 2023-07-14
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
›
⌄
with price as (
select
date_trunc('day', hour) as date,
symbol,
avg(price) as usd_price
from optimism.core.fact_hourly_token_prices
where
symbol in ('WETH', 'OP')
group by 1, 2
union all
select
date_trunc('day', hour) as date,
'ETH' as symbol,
avg(price) as usd_price
from optimism.core.fact_hourly_token_prices
where
symbol = 'WETH'
group by 1, 2
)
select
sum(price_usd) as "total sales volume (in usd)",
count(distinct buyer_address) as "total unique buyers",
count(distinct seller_address) as "total unique sellers",
count(distinct tx_hash) as "total sales count"
from optimism.core.ez_nft_sales join price n on block_timestamp::date = date and symbol = currency_symbol join optimism.core.dim_labels on address = nft_address
where
project_name = '{{collection}}' and
price_usd is not null
Run a query to Download Data