datavortexAptos hourly price
Updated 2024-12-25
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
WITH aggregated_prices AS (
SELECT
DATE_TRUNC('hour', hour) AS selected_interval,
MIN(open) AS open_price,
MAX(high) AS high_price,
MIN(low) AS low_price,
MAX(close) AS close_price
FROM aptos.price.fact_prices_ohlc_hourly
WHERE asset_id = 'aptos'
AND DATE_TRUNC('month', hour) = DATE_TRUNC('month', CURRENT_DATE)
GROUP BY selected_interval
)
SELECT * FROM aggregated_prices
ORDER BY selected_interval ASC;
--SELECT DISTINCT asset_id FROM aptos.price.fact_prices_ohlc_hourly
QueryRunArchived: QueryRun has been archived