clickhouse: commit exit-leg/reconstruction/maras DDLs + UV/violet DDLs (M1 vendor reconcile, upstream-first)
This commit is contained in:
26
prod/clickhouse/uv/04_max_hold_ingress.sql
Normal file
26
prod/clickhouse/uv/04_max_hold_ingress.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
-- Full per-evaluation ingress for BLUE-faithful UV MAX_HOLD modulation.
|
||||
-- UV namespace only. Apply during the normal certify-then-restart window.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS dolphin_uv.max_hold_ingress
|
||||
(
|
||||
timestamp DateTime64(3, 'UTC'),
|
||||
trade_id String,
|
||||
asset LowCardinality(String),
|
||||
side LowCardinality(String),
|
||||
evaluation_bar UInt64,
|
||||
bars_held UInt32,
|
||||
cascade_count UInt16,
|
||||
regime_signal Int8,
|
||||
imbalance_ma5 Float64,
|
||||
effective_imbalance Float64,
|
||||
withdrawal_velocity Float64,
|
||||
base_max_hold_bars UInt32,
|
||||
max_hold_bars UInt32,
|
||||
branch LowCardinality(String),
|
||||
source LowCardinality(String),
|
||||
fallback UInt8,
|
||||
ingress_json String
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY (trade_id, evaluation_bar, timestamp)
|
||||
SETTINGS index_granularity = 8192;
|
||||
Reference in New Issue
Block a user