diff --git a/app/main.py b/app/main.py index d629de0..6775851 100644 --- a/app/main.py +++ b/app/main.py @@ -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(