[2026-05-18] 장중 재시작 시 15:10 결산 누락 수정
This commit is contained in:
+9
-1
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user