BAT-032 (dcy-022): timeout_sec/slippage_pct 실행 정책, 미체결 자동 취소, 보호 지정가, `trex-core cancel` 백스톱. 마이그레이션 012. BAT-033: `trex-core enter --qty` 필수 검증 — 미지정 시 RPC 전 즉시 오류. BAT-034 (dcy-023): allocated_capital 죽은 필드 전 경로 제거 (domain·intent· persistence·snapshot·CLI). 마이그레이션 013(비가역 DROP). 외부 발신자 unknown key 무시 수신 의미론 적용. REL-006 confirmed: BAT-026~034 통합 릴리즈, pre-release smoke 증거 포함. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1009 B
1009 B
BAT-033: enter --qty 필수 검증 (issue #23)
- Status: release-candidate
- Profile: batch-lite
- Source Discovery: REQ-032 change-req (issue #23)
- Included REQ: REQ-032 (CHG-20260610-06, AC-7)
Summary
trex-core enter에--qty미지정 시 RPC 제출 전 즉시 오류 반환. 기존qty=None→ admitted → 집행 루프 KIS 거절 → 롤백이라는 "접수 성공처럼 보이지만 매수 안 됨" 혼동 제거.
Scope
- In:
trex_core/runtime/cli.pyenter서브커맨드에--qty미지정 검증 + 단위 테스트 - Out: IntentService admission 수량 검증(서비스 레이어), 도메인 변경, DB 스키마 변경
Documents
- Planning: planning.md
- Implementation: implementation.md
- Verification: verification.md
Notes
- batch-lite minor-change fast path: 구조/인터페이스/런타임 흐름 영향 없음 (CLI argparse 단일 파일).
- Design Gate: design 불필요 (planning.md 참조).