mo115swap to usdt copy
Updated 2023-04-26
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
-- forked from swap from usdt @ https://flipsidecrypto.xyz/edit/queries/1fda5a82-2ce8-4988-b117-0a21d85a2443
select date_trunc('day', BLOCK_TIMESTAMP) as date,
sum(AMOUNT_IN)as others,
sum(AMOUNT_IN_USD)as others_USD,
SYMBOL_IN,
sum(AMOUNT_OUT) as USDT,
sum(AMOUNT_OUT_USD) as USDT_USD,
SYMBOL_OUT,
(others_USD/others)as others_price,
(USDT_USD/USDT) as USDT_price,
(usdt-others) as difference,
count(distinct TX_HASH) as transactions
from
ethereum.core.ez_dex_swaps
where
SYMBOL_OUT = 'USDT'
and SYMBOL_IN in ('USDC', 'DAI')
and date >= '2023-02-01'
group by
1, 4, 7
Run a query to Download Data