SalehWhale Bridge Path to NEAR - Total
Updated 2024-12-21
999
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 lst_sol_price as (
select
hour::date as sol_price_date
,avg(price) as Sol_Price
from solana.price.ez_prices_hourly
where token_address = 'So11111111111111111111111111111111111111112'
group by 1
)
,lst_eth_price as (
select
hour::date as eth_price_date
,avg(price) as ETH_Price
from ethereum.price.ez_prices_hourly
where SYMBOL ilike 'ETH'
and NAME = 'ethereum'
group by 1
)
,lst_near_price as (
select
hour::date as near_price_date
,avg(close) as NEAR_Price
from near.price.fact_prices_ohlc_hourly
where ASSET_ID='wrapped-near'
and near_price_date is not null
group by 1
)
,lst_aurora_price as (
select
hour::date as aurora_price_date
,avg(close) as AURORA_Price
from near.price.fact_prices_ohlc_hourly
where ASSET_ID='aurora-near'
and aurora_price_date is not null
group by 1
)
,lst_btc_price as (
QueryRunArchived: QueryRun has been archived