sakineh5021-nIQRzBUntitled Query
Updated 2022-04-19
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with price as (
SELECT DISTINCT contract_address as token_address
from ethereum.erc20_balances P
where balance_date = '2022-04-17'
and has_price = 'TRUE'
)
SELECT block_timestamp::date as daily , platform , sum(D.AMOUNT_USD)
from ethereum.dex_swaps D
left outer join price P on P.token_address = D.token_address
where daily >'2022-04-10'
and platform <>'curve'
and D.AMOUNT_USD is not NULL
and D.AMOUNT_USD <10000000
group by 1 , 2
Run a query to Download Data