mirror of
https://github.com/FlipsideCrypto/blast-models.git
synced 2026-02-06 15:46:43 +00:00
un-enable spot
This commit is contained in:
parent
5c366443bc
commit
52663cef09
@ -24,20 +24,6 @@ new_subaccount_actions AS (
|
||||
{{ this }}
|
||||
)
|
||||
UNION
|
||||
SELECT
|
||||
DISTINCT(subaccount)
|
||||
FROM
|
||||
{{ ref('silver__blitz_spot') }}
|
||||
WHERE
|
||||
_inserted_timestamp >= (
|
||||
SELECT
|
||||
MAX(
|
||||
_inserted_timestamp
|
||||
) - INTERVAL '12 hours'
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
UNION
|
||||
SELECT
|
||||
DISTINCT(subaccount)
|
||||
FROM
|
||||
@ -78,32 +64,6 @@ trades_union AS (
|
||||
FROM
|
||||
{{ ref('silver__blitz_perps') }}
|
||||
|
||||
{% if is_incremental() %}
|
||||
WHERE
|
||||
subaccount IN (
|
||||
SELECT
|
||||
subaccount
|
||||
FROM
|
||||
new_subaccount_actions
|
||||
)
|
||||
{% endif %}
|
||||
UNION ALL
|
||||
SELECT
|
||||
subaccount,
|
||||
trader,
|
||||
digest,
|
||||
'spot' AS product_type,
|
||||
trade_type,
|
||||
block_timestamp,
|
||||
amount,
|
||||
amount_usd,
|
||||
fee_amount,
|
||||
base_delta_amount,
|
||||
quote_delta_amount,
|
||||
_inserted_timestamp
|
||||
FROM
|
||||
{{ ref('silver__blitz_spot') }}
|
||||
|
||||
{% if is_incremental() %}
|
||||
WHERE
|
||||
subaccount IN (
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
unique_key = '_log_id',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
tags = ['curated','reorg'],
|
||||
enable = false
|
||||
enabled = false
|
||||
) }}
|
||||
|
||||
WITH blitz_products AS (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user