fix(swap): 修复EOD持仓利息收入计算逻辑InterestIncomeSum TdCloseInterest 需要考虑 ratio

- 在利息收入总和计算中添加比例因子修正
- 确保TdCloseInterest在计算中正确应用比例
- 保持利息腿损益统计逻辑的一致性
This commit is contained in:
hjhan
2026-02-13 16:50:18 +08:00
parent aa2da0e38c
commit 5b9f97df06
@@ -873,7 +873,7 @@ namespace YLErp.Modules.SwapModule
}
else
{
newEodPayPosition.InterestIncomeSum = eodPayPosition.InterestIncomeSum + TdInterestAmount - newEodPayPosition.TdCloseInterest;
newEodPayPosition.InterestIncomeSum = eodPayPosition.InterestIncomeSum + TdInterestAmount - newEodPayPosition.TdCloseInterest * ratio;
}
//持仓内容-利息腿-损益统计(本方视角)
newEodPayPosition.TdInterestIncome = TdInterestAmount * (1 - closePercent);