near-models/models/gold/price/price__fact_prices_ohlc_hourly.sql
2025-08-11 13:50:07 -04:00

26 lines
481 B
SQL

{{ config(
materialized = 'view',
persist_docs ={ "relation": true,
"columns": true },
tags = ['scheduled_non_core']
) }}
SELECT
asset_id,
recorded_hour AS HOUR,
OPEN,
high,
low,
CLOSE,
provider,
inserted_timestamp,
modified_timestamp,
complete_provider_prices_id AS fact_prices_ohlc_hourly_id
FROM
{{ ref('silver__complete_provider_prices') }}
WHERE platform IN (
'NEAR Protocol',
'Near',
'near-protocol'
)