RamaharInflow vs $OP token price
Updated 2022-10-02Copy Reference Fork
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 token_price AS (
SELECT DATE(hour) as dt,
avg(price) as op_token_price
FROM optimism.core.fact_hourly_token_prices
WHERE symbol = 'OP'
GROUP BY 1),
Ethereum_data as (
select
DATE(block_timestamp) as dayz,
tx_hash,
origin_from_address,
amount_usd
from ethereum.core.ez_eth_transfers
where origin_to_address = '0x25ace71c97b33cc4729cf772ae268934f7ab5fa1'),
transfer_data as (
select
DATE(block_timestamp) as dayz,
tx_hash,
origin_from_address,
amount_usd
from ethereum.core.ez_token_transfers
where origin_to_address = '0x25ace71c97b33cc4729cf772ae268934f7ab5fa1'),
L2toL1 as (
select * from Ethereum_data
union all
select * from transfer_data),
swaps AS (
-- Sushiswap
(SELECT
'Sushiswap' as platform,
DATE(block_timestamp) as dt,
tx_hash,
Run a query to Download Data