TOTAL_SELLS_AMOUNT | SELL_VOLUME | TOTAL_BUYS_AMOUNT | BUY_VOLUME | TOTAL_SELLS_COUNT | TOTAL_BUYS_COUNT | TOTAL_VOLUME | TOTAL_SELL_VOLUME | TOTAL_BUY_VOLUME | TOTAL_SELL_AMOUNT | TOTAL_BUY_AMOUNT | TOTAL_SELL_AND_BUY_AMOUNT | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 59.801762029 | 6652.348008106 | 69.099116182 | 7686.585684086 | 46 | 46 | 14338.933692192 | 6652.348008106 | 7686.585684086 | 59.801762029 | 69.099116182 | 128.900878211 |
krom1Old volume figs of ME S1
Updated 2025-04-08
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 price AS (
SELECT
price
FROM
solana.price.ez_prices_hourly
WHERE
token_address = 'So11111111111111111111111111111111111111112'
ORDER BY
hour DESC
LIMIT 1
),
nft_data AS (
SELECT
SUM(CASE WHEN seller = '{{wallet}}' THEN sales_amount ELSE 0 END) AS total_sells_amount,
SUM(CASE WHEN purchaser = '{{wallet}}' THEN sales_amount ELSE 0 END) AS total_buys_amount,
COUNT(CASE WHEN seller = '{{wallet}}' THEN tx_id END) AS total_sells_count,
COUNT(CASE WHEN purchaser = '{{wallet}}' THEN tx_id END) AS total_buys_count
FROM
solana.nft.fact_nft_sales
WHERE
(seller = '{{wallet}}' OR purchaser = '{{wallet}}')
AND (marketplace ILIKE '%magic eden%' OR marketplace ILIKE '%magic eden v2%')
AND succeeded
AND block_timestamp >= '2024-12-10' -- Filter for December 2024 and after
AND block_timestamp <= '2025-03-31' -- Filter for before April 2025
)
SELECT
nft_data.total_sells_amount,
nft_data.total_sells_amount * p.price AS sell_volume,
nft_data.total_buys_amount,
nft_data.total_buys_amount * p.price AS buy_volume,
nft_data.total_sells_count,
Last run: about 2 months ago
1
151B
1s