kakamoraTransfers
Updated 2022-07-11
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 celsius as (
SELECT
*
FROM flipside_prod_db.crosschain.address_labels
WHERE address_name ilike '%celsius%'
),
swaps as (
SELECT
date_trunc(day, block_timestamp) as date,
blockchain,
symbol_in,
symbol_out,
symbol_in || '->' || symbol_out as pair,
count(distinct tx_hash) as txns,
sum(amount_out_usd) as volume
FROM flipside_prod_db.crosschain.ez_swaps
WHERE ORIGIN_FROM_ADDRESS IN (SELECT ADDRESS FROM celsius)
and platform ='sushiswap'
and block_timestamp >= CURRENT_DATE - 60
GROUP BY date, blockchain, symbol_in, symbol_out
),
borrowing as (
SELECT
*
/*date_trunc(day, block_timestamp) as date,
blockchain,
action,
ASSET,
platform, */
from flipside_prod_db.crosschain.ez_lending
where depositor IN (SELECT ADDRESS FROM celsius)
--and block_timestamp >= CURRENT_DATE - 60
),
Run a query to Download Data