39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
"""현재 운영 설정 핵심 키 조회"""
|
|
import sys
|
|
sys.path.insert(0, "/home/hoon/kis_bot")
|
|
from database import TradeDB
|
|
|
|
db = TradeDB()
|
|
try:
|
|
snap = db.get_merged_env_snapshot() or {}
|
|
|
|
keys = [
|
|
"KIWOOM_WS_ORDERBOOK_ENABLED",
|
|
"WS_ORDERBOOK_COLLECT_ENABLED",
|
|
"WS_ORDERBOOK_SAVE_ENABLED",
|
|
"WS_ORDERBOOK_TICK_MAX_AGE_SEC",
|
|
"WS_TRIGGER_EVAL_SAVE_ENABLED",
|
|
"WHIPSAW_FILTER_ENABLED",
|
|
"TAIL_WHIPSAW_FILTER_ENABLED",
|
|
"MOMENTUM_WHIPSAW_FILTER_ENABLED",
|
|
"BREAKOUT_WHIPSAW_FILTER_ENABLED",
|
|
"TAIL_ORDERBOOK_FILTER_ENABLED",
|
|
"MOMENTUM_ORDERBOOK_FILTER_ENABLED",
|
|
"BREAKOUT_ORDERBOOK_FILTER_ENABLED",
|
|
"SCALP_ORDERBOOK_FILTER_ENABLED",
|
|
"STRICT_FILL_VERIFY",
|
|
"USE_MARKET_IOC",
|
|
"USE_MARKET_IOC_SELL",
|
|
"WS_PROVIDER",
|
|
"WS_SUBSCRIBE_KIS_MINIMAL",
|
|
"KIS_WS_ORDERBOOK_ENABLED",
|
|
]
|
|
|
|
print("=== 현재 DB 설정값 ===")
|
|
for k in keys:
|
|
v = snap.get(k)
|
|
print(f" {k} = {repr(v)}")
|
|
|
|
finally:
|
|
db.close()
|