NakedCollectorCRYPTO PULSE (24h)
Updated 2024-07-02
999
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 lending AS (
SELECT
date_trunc('day', BLOCK_TIMESTAMP) AS date,
sum(AMOUNT_USD) AS "Lend Volume (USD)"
FROM
ethereum.defi.ez_lending_deposits
WHERE
BLOCK_TIMESTAMP >= CURRENT_TIMESTAMP - INTERVAL '{{Days}} Day'
GROUP BY
date
),
borrows AS (
SELECT
date_trunc('day', BLOCK_TIMESTAMP) AS date,
sum(AMOUNT_USD) AS "Borrow Volume (USD)"
FROM
ethereum.defi.ez_lending_borrows
WHERE
BLOCK_TIMESTAMP >= CURRENT_TIMESTAMP - INTERVAL '{{Days}} Day'
GROUP BY
date
),
swaps AS (
SELECT
date_trunc('day', BLOCK_TIMESTAMP) AS date,
(sum(AMOUNT_OUT_USD) + sum(AMOUNT_IN_USD)) AS "Swap Volume (USD)"
FROM
ethereum.defi.ez_dex_swaps
WHERE
BLOCK_TIMESTAMP >= CURRENT_TIMESTAMP - INTERVAL '{{Days}} Day'
GROUP BY
date
),
stablecoin_transactions AS (
SELECT
date_trunc('day', BLOCK_TIMESTAMP) AS date,
QueryRunArchived: QueryRun has been archived