dannerActivity Timeline
Updated 2022-12-24Copy Reference Fork
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
›
⌄
select
date_trunc('month',block_timestamp) as "Date",
-1*coalesce(sum(case when buyer_address in (
lower('{{Wallet1}}')
,lower('{{Wallet2}}')
,lower('{{Wallet3}}')
,lower('{{Wallet4}}')
,lower('{{Wallet5}}')
,lower('{{Wallet6}}')
)
then price_usd end),0)
as "Bought",
sum(case when seller_address in (
lower('{{Wallet1}}')
,lower('{{Wallet2}}')
,lower('{{Wallet3}}')
,lower('{{Wallet4}}')
,lower('{{Wallet5}}')
,lower('{{Wallet6}}')
)
then price_usd end)
as "Sold",
coalesce(sum(case when seller_address in (
lower('{{Wallet1}}')
,lower('{{Wallet2}}')
,lower('{{Wallet3}}')
,lower('{{Wallet4}}')
,lower('{{Wallet5}}')
,lower('{{Wallet6}}')
)
then price_usd end),0)
-
coalesce(sum(case when buyer_address in (
lower('{{Wallet1}}')
,lower('{{Wallet2}}')
,lower('{{Wallet3}}')
Run a query to Download Data