feat(Core/UI): 백테스트 전역 엔진 선택 버튼 추가 및 스캘핑 Rust 방어로직 포팅 1차 완료
This commit is contained in:
21
scratch/check_db_cols.py
Normal file
21
scratch/check_db_cols.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import sys
|
||||
import os
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
|
||||
from database import TradeDB
|
||||
|
||||
db = TradeDB()
|
||||
try:
|
||||
tables = [
|
||||
"ls_ws_ticks", "ls_ws_orderbook", "ws_orderbooks",
|
||||
"target_candidates", "target_candidates_ls"
|
||||
]
|
||||
|
||||
for tbl in tables:
|
||||
try:
|
||||
cols = [dict(r)["Field"] for r in db.conn.execute(f"SHOW COLUMNS FROM {tbl}").fetchall()]
|
||||
print(f"{tbl} cols: {cols}")
|
||||
except Exception as e:
|
||||
print(f"Error getting cols for {tbl}: {e}")
|
||||
|
||||
finally:
|
||||
db.close()
|
||||
Reference in New Issue
Block a user