收盘交易费用修复
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user