d3e4af59cf463db242a09e9b3d0f16bce113cd07
portfolio-hub WAC가 매수 fee를 cost basis에 편입함에 따라(REQ-110 change-req) 이중계상을 방지하기 위해 buy_fee_only_assets 관련 로직을 전면 제거하고, 일중 닫힌 거래 AC-2 단언을 엄격 동치(realized_pnl_wac == realized_pnl)로 강화. 변경: - OperatorReport.buy_fee_only_assets 필드 제거 - apply_wac_to_report buy_fee_only_assets 인자 제거 - buy_fee_by_asset 헬퍼 함수 제거 - render_text 매수전용 수수료 섹션 제거 - render_json buy_fee_only_assets 필드 제거 (WAC 필드 4개→3개) - cli.py: buy_fee_by_asset import/사용 제거, 미사용 'from datetime import date, timedelta' 제거 - test_wac_equals_net_when_same_day_buy_sell: WAC 957.0, 엄격 동치 단언 - test_buy_only_assets_has_fee → test_buy_only_asset_no_fee_line (fee 라인 없음) - test_render_json_has_all_four_wac_fields → test_render_json_has_three_wac_fields - 동일 CLI 통합 테스트 보정 결과: 717 passed, 47 skipped Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
Description
No description provided
4.4 MiB
Languages
Python
99.9%