#TRS-ZS-58 收盘操作:删除从衡泰获取数据等等功能

This commit is contained in:
汤旺
2024-05-22 17:59:07 +08:00
parent a8c2c0685a
commit 43629190e1
47 changed files with 71 additions and 5265 deletions
@@ -528,7 +528,7 @@ namespace YLErp.Modules.SwapModule
decimal allPosiNotionalValue = 0;
decimal longNotionalValue = realPositions.Where(s => s.PositionType == (int)PositionTypeFlag.Long).Sum(s => s.PosiNotionalValue);//剩余多头名义本金规模
decimal shortNotionalValue = realPositions.Where(s => s.PositionType == (int)PositionTypeFlag.Short).Sum(s => s.PosiNotionalValue);//剩余空头名义本金规模
PushLogService pushService = new PushLogService(UserInfo);
foreach (var eventGroup in eventQuery.GroupBy(g => g.PositionId))//持仓标的腿合成持仓
{
var eventList = eventGroup.ToList();
@@ -603,18 +603,6 @@ namespace YLErp.Modules.SwapModule
dividendIn = dividendIn + x.DividendIn;
x.DataState = (int)SwapFlowDateStateEnum.;
if (ratio > 0)
{
if (fposition == null)
{
pushService.AddLog(position.id, swapInsertEnum, position.PosiNumber);
}
pushService.AddLog(position.id, swapPosiEnum, position.PosiNumber + "-01");
}
else
{
pushService.AddLog(x.id, SwapPushDataEnum., position.PosiNumber);
}
});
tdCloseQty += closeQty;
if (eventFlow.EventType == 1)//最后一条是开仓