From b7b3621c7646d9af0613a2665d9567f3cc752b77 Mon Sep 17 00:00:00 2001 From: jongjae Date: Mon, 18 May 2026 15:17:10 +0900 Subject: [PATCH] =?UTF-8?q?[2026-05-18]=20=EC=9E=A5=EC=A4=91=20=EC=9E=AC?= =?UTF-8?q?=EC=8B=9C=EC=9E=91=20=EC=8B=9C=2015:10=20=EA=B2=B0=EC=82=B0=20?= =?UTF-8?q?=EB=88=84=EB=9D=BD=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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":