mucrypto2023-12-11 11:21 PM
Updated 2023-12-11
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 wbtc as (
select
hour,
price as wbtc_price
from ethereum.price.ez_hourly_token_prices
where symbol in ('WBTC')
order by 1 desc),
wbtc_first as (
select
hour as first_hour,
wbtc_price as first_wbtc_price
from wbtc
where first_hour >= '2023-01-01'
order by 1
limit 1),
wbtc_latest as (
select
hour as latest_hour,
wbtc_price as latest_wbtc_price
from wbtc
where latest_hour >= '2023-01-01'
order by 1 desc
limit 1),
wbtc_a as
(select
(latest_wbtc_price - first_wbtc_price) / first_wbtc_price * 100 as latest_wbtc_c
from wbtc_first
inner join wbtc_latest),
weth as (
select
hour,
price as weth_price
Run a query to Download Data