客户 适当性管理

This commit is contained in:
吴方海
2025-04-11 09:36:49 +08:00
parent 3b0ecae72d
commit 19b18b781a
13 changed files with 707 additions and 41 deletions
@@ -820,7 +820,7 @@ namespace YLErp.Modules.SwapModule
unwindData.AnnualDays = tradeExtend == null ? 365 : tradeExtend.ExtendObj.AnnualDays;
unwindData.CloseMethod = unwindQty == unwindData.PositionQty ? (int)CloseMethodEnum. : (int)CloseMethodEnum.;
unwindData.ClosePercent = unwindData.PositionQty == 0 ? 0 : unwindPercent;
unwindData.CloseNotionalValue = unwindData.PosiNotionalValue;
unwindData.CloseNotionalValue = unwindData.PosiNotionalValue* unwindPercent;
unwindData.CloseQty = unwindQty;
if (position != null)
{
@@ -850,7 +850,7 @@ namespace YLErp.Modules.SwapModule
floatEvent.TradingFeePending = position.PosiTradingFeePending * unwindData.ClosePercent;
var mergeClosePercent = mergeQty == 0 ? 0 : unwindQty / mergeQty;
floatEvent.TradingFee = penddingFee * mergeClosePercent;
floatEvent.MarkClosePnl = (unwindPriceFee - position.PosiNetPrice) * unwindData.PosiNotionalValue * floatRatio * longRatio;
floatEvent.MarkClosePnl = (unwindPriceFee - position.PosiNetPrice) * unwindQty * floatRatio * longRatio;
floatEvent.MarkClosePnl = decimal.Parse(floatEvent.MarkClosePnl.ToString("0.00"));
floatEvent.TradingAmount = floatEvent.Quantity * floatEvent.ContractSize;
floatEvent.OptLog = "流水自动";
@@ -858,7 +858,7 @@ namespace YLErp.Modules.SwapModule
floatEvent.SetOpt(UserInfo);
}
unwindData.FlowEvents.Add(floatEvent);
var interestPositions = GetUnwindInterests(unwindData.ValueDate, unwindData.UnwindDate.Value, td.id, 1, (int)SwapEventTypeEnum.);
var interestPositions = GetUnwindInterests(unwindData.ValueDate, unwindData.UnwindDate.Value, td.id, unwindPercent, (int)SwapEventTypeEnum.);
interestPositions.ForEach(item =>
{
item.OptLog = "流水自动";