diff --git a/app/main.py b/app/main.py index 3024d02..ac6cbbf 100644 --- a/app/main.py +++ b/app/main.py @@ -520,7 +520,15 @@ async def run(): await bot.update_universe() await bot.calc_targets() await bot.trading_loop() # 바로 매매루프 진입 - return + # 매매루프 종료 후 15:10 결산까지 대기 + while True: + now = datetime.now().strftime("%H:%M") + if now == "15:10": + await bot.daily_summary() + return + if now > "15:10": + return + await asyncio.sleep(30) # 08:30 이후~09:00 이전 시작 시 컨텍스트·유니버스 즉시 로드 if "08:30" <= now < "09:00":