cypherOp price and volume correlation
Updated 2022-10-03
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
with op_price as (select
date_trunc('day', hour) as date,
avg(price) as avg_daily_price
from optimism.core.fact_hourly_token_prices
where token_address = lower('0x4200000000000000000000000000000000000042')
group by date),
velo_volume as (select
date_trunc('day', block_timestamp) as date,
sum(amount_in_usd) as volume_velo
from optimism.velodrome.ez_swaps
group by date
),
comb as (select * from op_price
left join velo_volume using (date))
select corr(avg_daily_price, volume_velo)
from comb
Run a query to Download Data