[2026-05-19] 버그 수정 — 14:30 이후 재시작 시 강제청산 누락·14:00~14:50 SL 모니터링 중단

This commit is contained in:
2026-05-19 16:42:35 +09:00
parent edafeb7c79
commit 0ee8e034b0
+3 -2
View File
@@ -325,8 +325,9 @@ class StockBot:
self.running = False
break
# 14:00 이후 신규 진입 중단
# 14:00 이후 신규 진입 중단 (청산은 계속)
if now_str > "14:00":
await self.check_exits()
await asyncio.sleep(1)
continue
@@ -599,7 +600,7 @@ async def run():
await bot.initialize()
now = datetime.now().strftime("%H:%M")
if "09:00" <= now <= "14:30":
if "09:00" <= now < "15:00":
logger.info("장 중 재시작 감지 → AI 컨텍스트 로드 + 유니버스/목표가 즉시 계산")
ctx = bot.strategy.load_ai_context()
await notify_ai_result(