docs(dcy-007): draft + approve REQ-039~042 (trade history + realized PnL API)

dcy-007 분해 완료: 체결내역 조회(REQ-039, GET /trades), 실현 PnL 집계(REQ-040, GET /pnl/realized with WAC), WAC 산출 로직(REQ-041, service/domain 격리), 테스트 커버리지(REQ-042).

팀장 confirm-req 완료:
- 4건 모두 Proposed → Approved (dcy-007 결정·발견사항 반영, R-1 경고필드 포함, blocker 없음)
- M1(6/22) fast-track, 단일 batch 예정
- docs/srs/index.md: Next ID REQ-043, Register 4건 Approved, Change Log 갱신
- docs/discovery/dcy-007: 생성된 REQ 참조 업데이트

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
This commit is contained in:
2026-06-18 16:07:33 +09:00
co-authored by Claude Opus 4.8
parent b3186f14a0
commit f37ef87c8c
6 changed files with 385 additions and 3 deletions
@@ -5,10 +5,14 @@
- 문서 ID: dcy-007_20260616_daily-trade-history-and-realized-pnl-query-api
- 이슈명: 일일 거래내역 + 실현 PnL 조회 API (운영 리포트/프론트 데이터 소스)
- 작성 시각(KST): 2026-06-16 14:05 KST
- 마지막 갱신 시각(KST): 2026-06-18 (confirm-discovery)
- 마지막 갱신 시각(KST): 2026-06-18 (draft-req)
- 대체됨: 없음
- 후속 Discovery 참조: 없음
- 생성된 REQ 참조: 없음
- 생성된 REQ 참조:
- REQ-039: GET /v1/portfolios/{id}/trades 체결 내역 조회 엔드포인트 신설 (Interface, Proposed) → [req-039](../srs/Interface/req-039_trade-history-query-endpoint.md)
- REQ-040: GET /v1/portfolios/{id}/pnl/realized 실현 PnL 집계 엔드포인트 신설 (Interface, Proposed) → [req-040](../srs/Interface/req-040_realized-pnl-query-endpoint.md)
- REQ-041: WAC 기반 cost_basis 산출 및 실현 PnL 계산 로직 (Integration, Proposed) → [req-041](../srs/Integration/req-041_wac-cost-basis-pnl-calculation.md)
- REQ-042: 체결 내역/실현 PnL API 테스트 커버리지 (Testing, Proposed) → [req-042](../srs/Testing/req-042_trade-pnl-api-test-coverage.md)
# 1. 계획 상태 요약
현재 Discovery가 어떤 배경에서 작성되고 있는지, 연계 문서가 있는지, 지금 시점의 해석이 무엇인지 짧게 요약한다.