Yousefi_1994Optimistic Bears - OP and ETH price
Updated 2022-11-09Copy 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
›
⌄
with op_token_price as (
select
hour::date as "Days",
avg(price) as "OP Price"
from optimism.core.fact_hourly_token_prices
where hour::date >= '2022-07-01' and hour::date <= '2022-07-31'
and token_address = '0x4200000000000000000000000000000000000042'
group by "Days"
),
eth_token_price as (
select
hour::date as "Days",
avg(price) as "ETH Price"
from optimism.core.fact_hourly_token_prices
where hour::date >= '2022-07-01' and hour::date <= '2022-07-31'
and token_address = '0x4200000000000000000000000000000000000006'
group by "Days"
)
select
"Days",
"OP Price",
"ETH Price"
from op_token_price
join eth_token_price using("Days")
Run a query to Download Data