SocioAnalyticaTop NFT Collection 🔥 Last 7 Days
Updated 2024-03-29
999
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 paras_market as (
with buy as (
select
tx_hash,
receiver_id as platform,
block_timestamp,
SIGNER_ID as buyer,
args:nft_contract_id :: string as collection,
args:token_id :: string as token_id,
args:price :: int / pow(10, 24) as price
from near.core.fact_actions_events_function_call
where method_name = 'buy'
and RECEIVER_ID = 'marketplace.paras.near'
and RECEIPT_SUCCEEDED = 'TRUE'
and block_timestamp :: date >= current_date - 7
)
,
near_price as (
select
date_trunc('hour', timestamp) as date,
AVG(price_usd) as price_usd
from near.price.fact_prices
where symbol ilike 'wNEAR'
group by 1
)
select
a.block_timestamp,
a.tx_hash,
a.platform,
a.buyer,
a.collection,
a.token_id,
a.price,
QueryRunArchived: QueryRun has been archived