feat: Enhance trading system with new permanent subscription features and order book management

Changes:
- Added a new API endpoint for managing permanent subscriptions, allowing users to enable or disable subscriptions dynamically.
- Implemented a function to fill candle data from Kiwoom, ensuring that only relevant data is inserted into the database.
- Introduced a mechanism to handle master subscription states, improving the management of subscription statuses.
- Updated the database schema to include new fields for managing subscription states and order book filtering.

Impact:
- These enhancements improve the flexibility and reliability of the trading system, allowing for better management of subscriptions and order book data, while reducing the risk of data inconsistencies.

히스토리 align 제거 븅신같은 초기설계 아예 제거
진입모드에 구멍메움
호가진입을 켜도 호가가 안들어올때 호가 안보고 그냥 사버림
This commit is contained in:
Your Name
2026-08-15 23:01:14 +09:00
parent 4a18ce2697
commit 36a3e2b4a1
94 changed files with 6368 additions and 1639 deletions

View File

@@ -578,10 +578,7 @@ ALTER TABLE `config_breakout`
COMMENT '손절호가: 최소 손실 밴드(분율). 0.003=0.3%%. 이만큼 이상 손해일 때만',
MODIFY COLUMN `BREAKOUT_STOP_OB_MIN_HOLD_BARS`
text NULL DEFAULT NULL
COMMENT '손절호가: 산 뒤 최소 보유 분. 시드 2. 미달이면 안 함',
MODIFY COLUMN `BREAKOUT_LIVE_UNIVERSE_SLOT_ALIGN`
text NULL DEFAULT NULL
COMMENT 'config_breakout: BREAKOUT LIVE UNIVERSE SLOT ALIGN (BREAKOUT_LIVE_UNIVERSE_SLOT_ALIGN)';
COMMENT '손절호가: 산 뒤 최소 보유 분. 시드 2. 미달이면 안 함';
-- ── config_dart (50 cols) ──
ALTER TABLE `config_dart`
@@ -1394,10 +1391,7 @@ ALTER TABLE `config_momentum`
COMMENT '손절호가: 최소 손실 밴드(분율). 0.003=0.3%%. 이만큼 이상 손해일 때만',
MODIFY COLUMN `MOMENTUM_STOP_OB_MIN_HOLD_BARS`
text NULL DEFAULT NULL
COMMENT '손절호가: 산 뒤 최소 보유 분. 시드 2. 미달이면 안 함',
MODIFY COLUMN `MOMENTUM_LIVE_UNIVERSE_SLOT_ALIGN`
text NULL DEFAULT NULL
COMMENT 'config_momentum: MOMENTUM LIVE UNIVERSE SLOT ALIGN (MOMENTUM_LIVE_UNIVERSE_SLOT_ALIGN)';
COMMENT '손절호가: 산 뒤 최소 보유 분. 시드 2. 미달이면 안 함';
-- ── config_range_break (60 cols) ──
ALTER TABLE `config_range_break`
@@ -1907,10 +1901,7 @@ ALTER TABLE `config_scalp`
COMMENT '스캘핑: CANDLE GAP FORCE 초 (SCALP_CANDLE_GAP_FORCE_SEC)',
MODIFY COLUMN `SCALP_CANDLE_SHORT_LOG_SEC`
text NULL DEFAULT NULL
COMMENT '스캘핑: CANDLE SHORT LOG 초 (SCALP_CANDLE_SHORT_LOG_SEC)',
MODIFY COLUMN `SCALP_LIVE_UNIVERSE_SLOT_ALIGN`
text NULL DEFAULT NULL
COMMENT 'config_scalp: SCALP LIVE UNIVERSE SLOT ALIGN (SCALP_LIVE_UNIVERSE_SLOT_ALIGN)';
COMMENT '스캘핑: CANDLE SHORT LOG 초 (SCALP_CANDLE_SHORT_LOG_SEC)';
-- ── config_short (171 cols) ──
ALTER TABLE `config_short`
@@ -2423,10 +2414,7 @@ ALTER TABLE `config_short`
COMMENT '꼬리잡기: CONDITION SHORT LS NAME (CONDITION_SHORT_LS_NAME)',
MODIFY COLUMN `SHORT_LIVE_UNIVERSE_HISTORY_SOURCE`
text NULL DEFAULT NULL
COMMENT '꼬리잡기: LIVE 유니버스 HISTORY SOURCE (SHORT_LIVE_UNIVERSE_HISTORY_SOURCE)',
MODIFY COLUMN `SHORT_LIVE_UNIVERSE_SLOT_ALIGN`
text NULL DEFAULT NULL
COMMENT 'config_short: SHORT LIVE UNIVERSE SLOT ALIGN (SHORT_LIVE_UNIVERSE_SLOT_ALIGN)';
COMMENT '꼬리잡기: LIVE 유니버스 HISTORY SOURCE (SHORT_LIVE_UNIVERSE_HISTORY_SOURCE)';
-- ── config_updow (87 cols) ──
ALTER TABLE `config_updow`