Commit Graph

14 Commits

Author SHA1 Message Date
whdwo798 5a06b5779b [2026-06-04] morning 봇 시작 중복 제거 2026-06-04 10:24:36 +09:00
whdwo798 dd789cfbda [2026-06-01] Fix duplicate bot startup guards 2026-06-01 18:54:52 +09:00
whdwo798 29db1bfcab [2026-05-27] 포맷 후 복구 설치 스크립트 추가 2026-05-27 16:53:52 +09:00
whdwo798 adf755624a Discord 장전분석 알림을 morning.py --send-discord로 이동
Headless Claude가 one-liner 실행을 건너뛰고 텍스트만 출력하는 문제 수정.
daily_context.json을 읽어 전송하는 send_discord() 함수를 morning.py에 추가.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 08:26:37 +09:00
whdwo798 edafeb7c79 [2026-05-19] 세션 분리 + L3→B안 전환 + /midday 장중 분석 추가
- L3 하드 중단 제거 → B안(연속 손절별 포지션 축소) 적용
  0회×1.0 / 1회×0.7 / 2회×0.5 / 3+회×0.3, 익절 시 한 단계 회복
- 아침·점심 세션 분리: 11:00 이후 midday_context.json 감지 시 점심 세션 자동 시작
  (12:00 고정 시작 제거 → 이벤트 기반)
- app/ai/midday.py: 장중 데이터 수집 스크립트 신규 작성
- .claude/commands/midday.md: /midday 슬래시 커맨드 신규 작성
- scripts/run_midday.ps1: 11:20 스케줄러 스크립트 신규 작성
- setup_scheduler.ps1: StockBot_Midday 태스크 추가
- CLAUDE.md: 전체 문서 업데이트

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 14:07:27 +09:00
whdwo798 e5144d7d48 [2026-05-19] 모닝 루틴 강화 — RSS 4개 언론사 + 네이버 종목별 뉴스 추가, 07:30 시작
- fetch_news() → fetch_rss_news(): 한경·파이낸셜·매경 RSS ~80건
- fetch_stock_news_naver(): 거래량 상위 20종목 × 5건 (NAVER_CLIENT_ID/SECRET)
- 스케줄러 08:15 → 07:30 변경 (수집 여유 확보)
- blacklist_tickers 악재 감지 강화 (종목별 뉴스 기반)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 08:35:19 +09:00
whdwo798 4697286c8e [2026-05-18] 슬래시 커맨드 프로젝트로 이동 (git 관리) 2026-05-18 12:57:46 +09:00
whdwo798 542c1dcea2 [2026-05-15] 코드 수정 후 commit+push 자동화 설정
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 15:03:58 +09:00
whdwo798 a3f54fab47 [2026-05-15] Discord 알림 중복 발송 수정
- 커밋 없는 세션(스케줄러 태스크 등)은 알림 생략
- commit + push 완료 후 1회만 발송
- push 안된 경우 경고 메시지 포함

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 15:02:25 +09:00
whdwo798 7c9f73f63d [2026-05-15] 스케줄러 인코딩·권한·Discord 알림 수정
- run_*.ps1: PSScriptRoot 경로, claude.cmd 전체경로, UTF-8 BOM 저장으로 한글 깨짐 해결
- settings.json: PYTHONUTF8=1 환경변수, 글로벌 bypassPermissions 추가
- discord_notify.py: 커밋 메시지 불릿 + 커밋 완료 여부만 전송하도록 간소화

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 15:00:10 +09:00
whdwo798 a65d7c297b [2026-05-15] claude_evening 구현 + 권한 영구 적용
- app/ai/evening.py: 장후 데이터 수집 (매매내역/30일통계/실전전환조건)
- ~/.claude/commands/evening.md: /evening 슬래시 커맨드
- scripts/run_evening.ps1: claude_evening 실행 스크립트
- 작업 스케줄러 StockBot_Evening 등록 (평일 15:30)
- .claude/settings.json: bypassPermissions 추가 (권한 영구 승인)
- CLAUDE.md: 권한 섹션 추가, 할 일 목록 업데이트

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 14:07:15 +09:00
whdwo798 9ea0a5101d [2026-05-15] Discord 알림 - 이번 세션 신규 커밋만 전송
- SessionStart 훅: git HEAD를 session_start_sha.txt에 저장
- discord_notify.py: 세션 시작 이후 커밋만 표시 (누적 방지)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 13:59:30 +09:00
whdwo798 de37f0642c [2026-05-15] Discord Stop 훅 추가 및 notifier User-Agent 수정
- .claude/discord_notify.py: 세션 종료 시 git log/status를 Discord로 전송
- .claude/settings.json: Stop 훅 등록
- notifier.py: Cloudflare 차단 방지를 위해 User-Agent 헤더 추가
- .gitignore: settings.local.json 제외

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 13:49:10 +09:00
whdwo798 b61e1bec7f [2026-05-15] .claude/settings.json 추가
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 13:39:48 +09:00