TRADE_DATE | SALE_VOLUME_USD | CUMULATIVE_VOLUME | |
---|---|---|---|
1 | 2025-04-07 00:00:00.000 | 41732.784033207 | 30560740.7303505 |
2 | 2025-04-06 00:00:00.000 | 67752.248022561 | 30519007.9463173 |
3 | 2025-04-05 00:00:00.000 | 48629.690600298 | 30451255.6982947 |
4 | 2025-04-04 00:00:00.000 | 62495.894966835 | 30402626.0076944 |
5 | 2025-04-03 00:00:00.000 | 70196.534073286 | 30340130.1127276 |
6 | 2025-04-02 00:00:00.000 | 94434.233342154 | 30269933.5786543 |
7 | 2025-04-01 00:00:00.000 | 116453.313177899 | 30175499.3453122 |
8 | 2025-03-31 00:00:00.000 | 90907.370645815 | 30059046.0321343 |
9 | 2025-03-30 00:00:00.000 | 64851.104115083 | 29968138.6614885 |
10 | 2025-03-29 00:00:00.000 | 63160.046464099 | 29903287.5573734 |
11 | 2025-03-28 00:00:00.000 | 63590.545516743 | 29840127.5109093 |
12 | 2025-03-27 00:00:00.000 | 87463.049234203 | 29776536.9653925 |
13 | 2025-03-26 00:00:00.000 | 124968.827756595 | 29689073.9161583 |
14 | 2025-03-25 00:00:00.000 | 96188.36717577 | 29564105.0884017 |
15 | 2025-03-24 00:00:00.000 | 91634.74741595 | 29467916.721226 |
16 | 2025-03-23 00:00:00.000 | 46856.666816969 | 29376281.97381 |
17 | 2025-03-22 00:00:00.000 | 64091.284091948 | 29329425.3069931 |
18 | 2025-03-21 00:00:00.000 | 70740.297042943 | 29265334.0229011 |
19 | 2025-03-20 00:00:00.000 | 57517.002411714 | 29194593.7258582 |
20 | 2025-03-19 00:00:00.000 | 67446.103571431 | 29137076.7234464 |
feyikemiCumulative Volume
Updated 2025-04-07
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
›
⌄
WITH Price AS(
SELECT
HOUR::date AS Date,
token_address,
avg(price) AS price_usd
FROM ronin.price.ez_prices_hourly
GROUP BY 1,2
),
NFT_TXNS AS (
SELECT
block_timestamp,
tx_hash,
from_address AS seller,
to_address AS buyer,
name AS collection,
decoded_log:acceptedSettlePrice / 1e18 as nft_price,
(decoded_log:acceptedSettlePrice / 1e18)*price_usd as nft_Price_usd
from ronin.nft.ez_nft_transfers tr
join ronin.core.ez_decoded_event_logs log using (tx_hash, block_timestamp)
left join price p on block_timestamp::date = p.date and log.decoded_log:settleToken = token_address
where event_name = 'OrderMatched'
and decoded_log:order[0]:extraData[0][2] = token_id
and tx_succeeded
)
select
DATE_TRUNC('day', block_timestamp) AS trade_date,
sum(nft_Price_usd) as sale_volume_usd,
sum(sale_volume_usd) OVER (ORDER BY trade_date) AS Cumulative_Volume
from nft_txns
Group By 1
ORDER BY 1 DESC
Last run: about 2 months ago
...
189
11KB
33s