收盘交易费用修复

This commit is contained in:
吴方海
2025-04-22 18:00:49 +08:00
parent 893d30ab29
commit 5d0e879cf6
@@ -1269,8 +1269,8 @@ namespace YLErp.Modules.SwapModule
}
else
{
var eventTradingFee = openFlowEvents.Sum(s => s.TradingFeePending);
curretEod.PosiFeePending = eod.PosiFeePending - eventTradingFee * directionRatio;
var eventTradingFee = unwindEvents.Where(x => x.EventType == (int)SwapFlowEventTypeEnum. || x.EventType == (int)SwapFlowEventTypeEnum.).Sum(s => s.TradingFeePending * (s.EventType == (int)SwapFlowEventTypeEnum. ? 1m : -1m));
curretEod.PosiFeePending = eod.PosiFeePending + eventTradingFee;
if (openFlowEvents.Count() == 0)
{
curretEod.PosiNetPrice = eod.PosiNetPrice;