feat(Core/UI): 백테스트 전역 엔진 선택 버튼 추가 및 스캘핑 Rust 방어로직 포팅 1차 완료

This commit is contained in:
Your Name
2026-09-03 02:49:14 +09:00
parent ac1190f1fc
commit 3b7c21cde4
316 changed files with 56952 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
from database import TradeDB
db = TradeDB()
try:
# env_config는 컬럼=키 구조임을 확인 → UPDATE 방식으로 패치
cols = [dict(r)["Field"] for r in db.conn.execute("SHOW COLUMNS FROM env_config").fetchall()]
print("WS_ORDERBOOK_SAVE_KIS 컬럼 있음?" , 'WS_ORDERBOOK_SAVE_KIS' in cols)
# 현재 값
current = db.conn.execute("SELECT WS_ORDERBOOK_SAVE_KIS FROM env_config").fetchone()
print("현재 값:", dict(current) if current else "row 없음")
# 패치 적용
db.conn.execute("UPDATE env_config SET WS_ORDERBOOK_SAVE_KIS = 'true'")
db.conn.commit()
# 검증
after = db.conn.execute("SELECT WS_ORDERBOOK_SAVE_KIS FROM env_config").fetchone()
print("패치 후 값:", dict(after))
finally:
db.close()