Files
trex-core/docs/discovery/index.md
T
genichinandClaude Opus 4.8 cc28e1fba5 fix(execution): dcy-012 매도 가격 버그 정정 — slot entry_price→limit_price rename (BAT-016)
매도(sell) 주문이 현재가가 아닌 매수가(entry_price) 지정가로 나가던 버그(issue #10)
정정. 슬롯의 매수 전용 entry_price 를 side 무관 "현재 pending 주문 지정가"
limit_price 로 내부 rename 하고, pending 이탈(→holding/→closed) 시 clear 해
매수 지정가가 매도로 누수되는 경로를 구조적으로 제거.

거버넌스: 전부 change-req (신규 REQ 없음, dcy-012 OQ-3).
- REQ-002: Slot entry_price→limit_price rename + clear-on-exit 생애주기
- REQ-006: daily_slot 컬럼 rename 마이그레이션 006 (idempotent) + persistence 매핑
- REQ-013: _dispatch 가 slot.limit_price 단일 필드로 가격/주문유형 결정
- REQ-007: SellIntent/sell payload optional limit_price + _admit_sell 운반
- REQ-036: SlotService.sell optional 가격 → 자율 매도(safety-sell/kill-switch) 시장가
- REQ-003: 컬럼 계약/드리프트 가드 limit_price 반영
- REQ-015: runtime-flows/interface-contract/data-model 정합

매도 정책(OQ-1 하이브리드): 가격 지정→지정가("00"), 미지정→시장가("01").
자율 매도는 가격 미전달 → 항상 시장가 (손절 미체결 pending_sell 갇힘 방지, issue #9 연계).

검증: 단위 286 passed/32 skipped, 인프라 게이트(PG+RabbitMQ) 318 passed, ruff clean.
신규 test_sell_pricing(recording broker)로 지정가 매수 슬롯의 매도가 매수가
재사용 안 함을 직접 검증. BAT-016 release-candidate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 13:41:46 +09:00

3.2 KiB

Discovery 전체 인덱스

Discovery 목록

ID 날짜 이슈명 문서 상태
dcy-001_20260603_slot-pure-domain-migration 20260603 trex-core 베이스 수립 및 slot 순수 도메인 이식 Discovery confirmed
dcy-002_20260603_slot-core-daemon-http-api 20260603 trex-core 슬롯 코어 데몬화 + HTTP intent API Discovery confirmed
dcy-003_20260604_broker-execution-and-outbox 20260604 브로커 단일 세션 + 주문 집행 + durable outbox (불변식 B) Discovery confirmed
dcy-004_20260604_portfolio-hub-ledger-integration 20260604 portfolio-hub ledger 연동 — 체결을 외부 원장에 기록 Discovery confirmed
dcy-005_20260604_portfolio-hub-asset-snapshot-api 20260604 portfolio-hub 종목 스냅샷 read API — 전략 모듈에 전략 실행 대상 자산 리스트 제공 Discovery confirmed
dcy-006_20260605_strategy-module-rabbitmq-transport 20260605 trex-core ↔ 전략 모듈 통신 transport — RabbitMQ 도입 (스냅샷 read + intent 제출 + 이벤트) Discovery confirmed
dcy-007_20260606_core-autonomous-safety-sell 20260606 core 자율 안전 매도 — stop-loss·시간 만기 자동 트리거 Discovery confirmed
dcy-008_20260607_emergency-stop-kill-switch 20260607 비상 정지/강제 청산(kill-switch) — portfolio/전역 슬롯 청산 + 당일 전략 제외 Discovery confirmed
dcy-009_20260607_multi-instance-rabbitmq-topology 20260607 인스턴스별 독립 RabbitMQ 채널 토폴로지 — trex-core 다중 인스턴스 운영을 위한 Topic Exchange + Fanout Exchange per-instance 큐 분리 Discovery confirmed
dcy-010_20260607_safety-sell-persistent-rejection-backoff 20260607 safety-sell 영속 거부 재시도 백오프 — 장 휴장·잔고 부족·규제 등 지속 거부 상황에서 KIS 주문 spam 방지를 위한 슬롯별 재시도 backoff/cooldown 정책 Discovery confirmed
dcy-011_20260608_buy-intent-portfolio-id-required-symbol-resolve 20260608 buy intent — portfolio_id를 필수 키로, symbol은 universe(SnapshotStore)에서 resolve (+ issue #11 portfolio_id 누락 체결 ledger silent skip 가시화 흡수) Discovery confirmed
dcy-012_20260608_sell-order-pricing-entry-price-bug 20260608 매도 주문이 현재가가 아닌 entry_price(매수가) 지정가로 나가는 버그 — sell dispatch 가격 정책 부재 (issue #10) Discovery confirmed