[2026-05-15] 작업 스케줄러 자동화 + main.py 타이밍 수정
- scripts/run_morning.ps1: claude_morning 실행 스크립트 - scripts/run_bot.bat: 매매봇 실행 스크립트 - scripts/setup_scheduler.ps1: 작업 스케줄러 등록 스크립트 - app/main.py: AI 컨텍스트 로드 타이밍 08:05→08:30으로 수정 (claude_morning이 08:15 시작해 08:30 전에 완료되므로) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-7
@@ -437,10 +437,10 @@ async def run():
|
||||
while True:
|
||||
now = datetime.now().strftime("%H:%M")
|
||||
|
||||
# 07:30 AI 판단 (컨텍스트 로드)
|
||||
if now == "08:05":
|
||||
bot.strategy.load_ai_context()
|
||||
ctx = bot.strategy.context
|
||||
# 08:30 AI 컨텍스트 로드 + 유니버스 갱신
|
||||
# (claude_morning이 08:15에 시작해 08:30 전에 daily_context.json 생성)
|
||||
if now == "08:30":
|
||||
ctx = bot.strategy.load_ai_context()
|
||||
await notify_ai_result(
|
||||
ctx["market_sentiment"],
|
||||
ctx["sentiment_score"],
|
||||
@@ -449,9 +449,6 @@ async def run():
|
||||
ctx.get("reason", ""),
|
||||
)
|
||||
bot.risk.set_risk_level(ctx.get("risk_level", "보통"))
|
||||
|
||||
# 08:30 유니버스 갱신 (claude_morning은 Claude Code headless가 별도 실행)
|
||||
elif now == "08:30":
|
||||
await bot.update_universe()
|
||||
|
||||
# 08:50 목표가 계산
|
||||
|
||||
Reference in New Issue
Block a user