Files
auto-stock/backend/app/api/endpoints/day_trading.py
YoungWooSeo c29e7f9716 fix: day_trading 코드 리뷰 사항 전체 반영
- _execute_eod_flat에 _trade_lock 적용 (race condition 수정)
- total_assets=0일 때 신규 진입 차단 (손실한도 체크 우회 방지)
- MCP import를 모듈 최상단으로 이동
- API_CALL_DELAY 상수화 (settings.API_MIN_REQUEST_INTERVAL 사용)
- _execute_entry의 불필요한 global _trade_lock 제거
- candles_1m 빈 리스트일 때 execute 엔드포인트 early return 추가
2026-02-27 09:07:56 +09:00

35 KiB