mirror of
https://github.com/FlipsideCrypto/fsc-evm.git
synced 2026-02-06 13:46:45 +00:00
add hourly tags to nado api models
This commit is contained in:
parent
423ab7fb42
commit
66a7cfc700
@ -10,7 +10,7 @@
|
||||
full_refresh = false,
|
||||
unique_key = ['product_id','hour','price','orderbook_side'],
|
||||
cluster_by = ['hour::DATE'],
|
||||
tags = ['silver','curated','nado']
|
||||
tags = ['silver','curated','nado','hourly_nado']
|
||||
) }}
|
||||
|
||||
WITH market_depth AS ({% for item in range(55) %}
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = ['ticker_id','hour'],
|
||||
cluster_by = ['HOUR::DATE'],
|
||||
tags = ['silver','curated','nado']
|
||||
tags = ['silver','curated','nado','hourly_nado']
|
||||
) }}
|
||||
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = ['ticker_id','hour'],
|
||||
cluster_by = ['HOUR::DATE'],
|
||||
tags = ['silver','curated','nado']
|
||||
tags = ['silver','curated','nado','hourly_nado']
|
||||
) }}
|
||||
|
||||
|
||||
@ -54,7 +54,6 @@ SELECT
|
||||
) }} AS nado_money_markets_id,
|
||||
'{{ invocation_id }}' AS _invocation_id
|
||||
FROM
|
||||
flattened
|
||||
WHERE product_id not in ('121','125') qualify(ROW_NUMBER() over(PARTITION BY ticker_id, HOUR
|
||||
flattened qualify(ROW_NUMBER() over(PARTITION BY ticker_id, HOUR
|
||||
ORDER BY
|
||||
inserted_timestamp DESC )) = 1
|
||||
Loading…
Reference in New Issue
Block a user