fix: SELL 주문에서 Fat Finger 오탐 수정 — 손절/익절 차단 버그 (#187) #188
Reference in New Issue
Block a user
Delete Branch "feature/issue-187-sell-fat-finger-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
문제
SELL 주문(손절/익절)이 Fat Finger 체크에 막혀 실행되지 않는 버그.
재현 사례 (2026-02-21 로그):
원인
validate_order()는 order_amount / total_cash > 30%를 검사하는데, SELL의 경우 현금을 소비하지 않고 받는 것이므로 이 비율이 의미 없음.
수정 내용
main.py realtime/daily 사이클 두 곳에서 분기:
src/core/risk_manager.py는 READ-ONLY이므로 main.py에서 처리.
테스트
전체 731개 테스트 통과.
Closes #187