Hessishsimon
Updated 2024-10-29
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 txs as (SELECT ADDRESS_NAME,
LABEL_TYPE,
LABEL_SUBTYPE,
PROJECT_NAME as exchange,
TX_HASH,
FROM_ADDRESS,
AMOUNT,
AMOUNT_USD,
SYMBOL,
BLOCK_TIMESTAMP
from bsc.core.ez_token_transfers
join bsc.core.dim_labels
on ADDRESS = from_address
where
BLOCK_TIMESTAMP::date >= '2023-03-01' and
LABEL_TYPE = 'cex' and
label_subtype='hot_wallet' and
PROJECT_NAME != 'woo network' and
CONTRACT_ADDRESS = '0x6894cde390a3f51155ea41ed24a33a4827d3063d'
--in ('0x8ed97a637a790be1feff5e888d43629dc05408f6',
--'0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605',
--'0xb166e8b140d35d9d8226e40c09f757bac5a4d87d')
)
select
date_trunc('day',block_timestamp) as date,
exchange,
SYMBOL,
sum(AMOUNT) as "Amount",
sum(AMOUNT_USD) as "USD volume"
from txs
GROUP by all
QueryRunArchived: QueryRun has been archived