mondovtransactions_volume
Updated 2023-04-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
34
35
36
›
⌄
-- forked from transactions_stats @ https://flipsidecrypto.xyz/edit/queries/8d6b44c2-32cb-4d0c-9043-b1bd7b54ecfc
with
usdc_to_weth as (
SELECT
sum(amount_in_usd) as usdc_to_weth_volume,
DATE_TRUNC('day', block_timestamp) as day
FROM
ethereum.core.ez_dex_swaps
WHERE
contract_address = '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640'
AND day >= current_date() - {{time_period_days}}
AND SYMBOL_IN = 'USDC'
GROUP BY
day
ORDER BY
day DESC
),
weth_to_usdc as (
SELECT
sum(amount_in_usd) as weth_to_usdc_volume,
DATE_TRUNC('day', block_timestamp) as day
FROM
ethereum.core.ez_dex_swaps
WHERE
contract_address = '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640'
AND day >= current_date() - {{time_period_days}}
AND SYMBOL_OUT = 'USDC'
GROUP BY
day
ORDER BY
day DESC
)
SELECT
*
FROM
Run a query to Download Data