refactor: enhance Optuna backtesting framework, optimize orderbook filtering, and update database management utilities.

This commit is contained in:
Your Name
2026-08-12 10:19:19 +09:00
parent cb7e5037a0
commit c6bd62a25f
218 changed files with 31613 additions and 759 deletions

View File

@@ -0,0 +1,25 @@
"""
DB env_config 테이블 실제 컬럼 확인 후 LS_WS_VALIDATION_ENABLED 끄기
"""
import sys
sys.path.insert(0, "/home/hoon/kis_bot")
from database import TradeDB
db = TradeDB()
try:
# env_config 테이블 컬럼 확인
cols = [dict(r)["Field"] for r in db.conn.execute("SHOW COLUMNS FROM env_config").fetchall()]
print(f"env_config 컬럼: {cols}")
# 샘플 3건 확인
rows = db.conn.execute("SELECT * FROM env_config LIMIT 3").fetchall()
for r in rows:
print(f" {dict(r)}")
# LS WS 끄기 - 실제 컬럼명 기준
# 컬럼: [id, key_name, value, ...] 또는 [id, env_key, env_val, ...]
# 위에서 확인 후 결정
finally:
db.close()