feat: propagate intent venue through execution

This commit is contained in:
jordan
2026-07-29 16:55:20 +09:00
parent 7084304c9f
commit 479cb39a7e
22 changed files with 314 additions and 19 deletions
@@ -0,0 +1,9 @@
# BAT-059 intent venue fan-in
- Profile: standard
- Status: release-candidate
- Discovery: dcy-039
- Included REQ: REQ-124
전략 wire의 venue를 슬롯과 브로커 주문·취소까지 additive로 연결한다.
배포와 실주문은 이 batch 범위가 아니다.
@@ -0,0 +1,8 @@
# BAT-059 Design
`Slot.venue`는 현재 pending 주문의 거래소 구분값이다. admission이 허용값을
검증하고 pending 전이에 저장한다. HOLDING에는 마지막 주문값이 남지만 sell intent가
현재 청산 venue로 덮어쓴다. INACTIVE에서는 KRX로 초기화한다.
기본 KRX는 기존 전략의 wire·stub·운영 동작을 보존한다. NXT 취소만 venue keyword를
명시해 이전 테스트 double과의 하위 호환도 유지한다.
@@ -0,0 +1,7 @@
# BAT-059 Implementation
- `BuyIntent`/`SellIntent`와 handler venue 추가
- `Slot.venue`, migration 017, PostgreSQL mapping 추가
- `ExecutionService` 주문·취소 venue 전달
- invalid venue 사전 거부
- 전용 NXT flow 테스트 추가
@@ -0,0 +1,7 @@
# BAT-059 Planning
1. venue wire·domain 계약 추가
2. 슬롯 persistence와 migration 추가
3. execution submit/cancel 전달
4. NXT 신규 테스트와 전체 KRX 회귀
5. interface/data/runtime 문서 동기화
@@ -0,0 +1,10 @@
# BAT-059 Verification
- Status: PASS
- Targeted: 32 passed
- Full: 837 passed, 47 skipped
- 실계좌·실주문: 실행하지 않음
- 기존 runtime: 변경하지 않음
검증 범위는 wire→slot→broker submit/cancel, invalid venue, INACTIVE reset,
PostgreSQL row mapping, 전체 회귀다.