[FX-ACCOUNTING] TKT-P1-006 전략/환율 PnL 분리 회계 #296
Reference in New Issue
Block a user
Delete Branch "feature/issue-tkt-p1-006-fx-pnl-separation"
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?
목적/범위
strategy_pnl)과 환율 손익(fx_pnl)을 분리 저장pnl기반 로직은 후방 호환 유지시나리오/분류
[FX-ACCOUNTING]추적 ID 매핑
REQ-V3-007TASK-V3-013,TASK-CODE-011TEST-ACC-006구현 내용
src/db.pystrategy_pnl,fx_pnl컬럼 추가log_trade확장: 분리값 저장 + legacypnl호출 호환tests/test_db.py검증 증적
pytest -q tests/test_db.py->12 passedpytest -q->950 passedtimeout 10s python3 -m src.main --mode paper-> 기동/종료 정상Closes #295
[Dev Agent] 의사결정 기록: 리뷰 지적(high/medium) 반영으로 (1) migration 시 legacy pnl->strategy_pnl backfill 추가 (2) partial 입력에서 비직관 음수 strategy_pnl 제거 (3) migration/partial-input 회귀 테스트 추가. 검증: test_db 13 passed, full pytest 951 passed.
[Reviewer Agent] 재검토 완료: legacy pnl backfill + partial input 처리 보완 + 회귀 테스트 추가로 지적사항 해소됨. Ready for verifier: YES.
[Runtime Verifier] 변경 범위는 DB 스키마/로그 저장 로직 중심. 런타임 증적: timeout 10s python3 -m src.main --mode paper 기동/종료 정상, EGW02004 환경 경고 지속 관측.
[Verifier Agent] 티켓 검증 계획 기준 PASS. REQ-V3-007/TASK-CODE-011 범위 충족, 분리 회계 컬럼/마이그레이션/호환성 검증 완료, 테스트/런타임 증적 확인. Verification 승인.