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,18 @@
from database import TradeDB
db = TradeDB()
try:
# 최신 스냅샷 가져오기
snapshot = db.get_merged_env_snapshot()
old_val = snapshot.get('LS_WS_MAX_SUBSCRIPTIONS', '없음')
print("현재 값:", old_val)
# 0(무제한)으로 세팅
snapshot['LS_WS_MAX_SUBSCRIPTIONS'] = '0'
# DB에 인서트
db.insert_env_snapshot(snapshot)
print("LS_WS_MAX_SUBSCRIPTIONS=0 (무제한) 으로 스냅샷 업데이트 완료!")
except Exception as e:
print("Error:", e)
finally:
db.close()