clickhouse: commit exit-leg/reconstruction/maras DDLs + UV/violet DDLs (M1 vendor reconcile, upstream-first)
This commit is contained in:
30
prod/clickhouse/pink/account_events.sql
Normal file
30
prod/clickhouse/pink/account_events.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
CREATE TABLE dolphin_pink.account_events
|
||||
(
|
||||
`ts` DateTime64(6, 'UTC'),
|
||||
`event_type` LowCardinality(String),
|
||||
`strategy` LowCardinality(String),
|
||||
`posture` LowCardinality(String),
|
||||
`capital` Float64,
|
||||
`peak_capital` Float64,
|
||||
`drawdown_pct` Float32,
|
||||
`pnl_today` Float64 DEFAULT 0,
|
||||
`trades_today` UInt16 DEFAULT 0,
|
||||
`open_positions` UInt8 DEFAULT 0,
|
||||
`boost` Float32 DEFAULT 1.,
|
||||
`beta` Float32 DEFAULT 0.,
|
||||
`current_open_notional` Float64 DEFAULT 0,
|
||||
`current_account_leverage` Float32 DEFAULT 0,
|
||||
`exchange_leverage` UInt8 DEFAULT 0,
|
||||
`exchange_leverage_mode` LowCardinality(String) DEFAULT '',
|
||||
`leverage_mapping_rule` LowCardinality(String) DEFAULT '',
|
||||
`runtime_namespace` LowCardinality(String) DEFAULT '',
|
||||
`strategy_namespace` LowCardinality(String) DEFAULT '',
|
||||
`event_namespace` LowCardinality(String) DEFAULT '',
|
||||
`actor_name` LowCardinality(String) DEFAULT '',
|
||||
`exec_venue` LowCardinality(String) DEFAULT '',
|
||||
`data_venue` LowCardinality(String) DEFAULT '',
|
||||
`notes` String DEFAULT ''
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY (ts, event_type)
|
||||
SETTINGS index_granularity = 8192
|
||||
Reference in New Issue
Block a user