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,28 @@
import sys
sys.path.append('.')
from database import TradeDB
db = TradeDB()
try:
print("--- env_auth_config ---")
rows = db.conn.execute("SELECT * FROM env_auth_config").fetchall()
for r in rows:
d = dict(r)
for k, v in d.items():
if v and isinstance(v, str) and len(v) > 10:
d[k] = v[:4] + "*" * (len(v) - 8) + v[-4:]
print(d)
print("\n--- env_config ---")
rows = db.conn.execute("SELECT * FROM env_config").fetchall()
for r in rows:
d = dict(r)
if "KEY" in d.get("env_key", "") or "SECRET" in d.get("env_key", "") or "ACCOUNT" in d.get("env_key", ""):
v = d.get("env_value", "")
if v and isinstance(v, str) and len(v) > 10:
d["env_value"] = v[:4] + "*" * (len(v) - 8) + v[-4:]
print(d)
except Exception as e:
print(f"Error: {e}")
finally:
db.close()