SALES | SELLERS | BUYERS | VOLUME_USD | AVERAGE_AMOUNT_USD | |
---|---|---|---|---|---|
1 | 14315 | 4559 | 4693 | 24762.972705652 | 0.8672634296 |
Afonso_DiazTotal
Updated 21 hours ago
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
pricet as (
select
hour::date as date,
token_address,
symbol,
avg(price) as token_price_usd
from ronin.price.ez_prices_hourly
group by 1, 2, 3
),
txns as (
select
tx_hash,
block_timestamp,
b.from_address as seller_address,
b.to_address as buyer_address,
b.contract_address as collection_id,
b.name as collection_name,
tokens.symbol,
(a.decoded_log:acceptedSettlePrice / pow(10, decimals)) as price,
price * token_price_usd as price_usd,
quantity,
token_id,
a.decoded_log:settleToken::string as token_address
from ronin.core.ez_decoded_event_logs a
join ronin.nft.ez_nft_transfers b using (tx_hash, block_timestamp)
left join pricet on block_timestamp::date = date and a.decoded_log:settleToken = token_address
left join ronin.core.dim_contracts tokens on address = a.decoded_log:settleToken
where event_name = 'OrderMatched'
and decoded_log:order[0]:extraData[0][2] = token_id
and decoded_log::string ilike '%' || from_address || '%'
and tx_succeeded
and price > 0
),
Last run: about 21 hours ago
1
48B
38s