fix(holdings): /holdings/cost-basis WAC row에 fee_amount 편입 (QC보정)

get_holdings_cost_basis 핸들러의 row dict에 fee_amount 누락으로
/holdings/cost-basis의 cost_basis_per_unit이 매수 수수료 미편입값을
반환하던 버그 수정. /pnl/realized 핸들러와 동일하게 e.fee_amount 포함.
테스트: buy fee>0 케이스(1000.5 단언) + fee=0 회귀 케이스 추가.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
This commit is contained in:
2026-06-26 20:34:03 +09:00
co-authored by Claude Sonnet 4.6
parent 73414817e0
commit d224d716f6
2 changed files with 68 additions and 1 deletions
+1
View File
@@ -859,6 +859,7 @@ def get_holdings_cost_basis(
"side": e.side,
"quantity": e.quantity,
"price": e.price,
"fee_amount": e.fee_amount,
"executed_at": e.executed_at,
}
for e in ledger_entries