#EQD-6948 国联民生-实现保证金规则(2)追保金额的产生与收盘计算 收盘计算和授信占用
This commit is contained in:
@@ -319,6 +319,19 @@ namespace YLErp.Modules.ReportModule
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 已使用授信(R2 阶段三 §3.2):授信出入表 Σ(amount)
|
||||
/// </summary>
|
||||
public double? UsedCredit { get; set; }
|
||||
|
||||
public string UsedCreditString
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((UsedCredit == null || UsedCredit == -0) ? 0 : UsedCredit.Value).ToString("0.00");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 授信占用
|
||||
/// </summary>
|
||||
|
||||
@@ -107,6 +107,10 @@ namespace YLErp.Modules.ReportModule
|
||||
AvailableFund = clientBalance?.AvailableAmount ?? 0,
|
||||
TotalMargin = clientBalance?.TotalMarginTotal,
|
||||
Credit = clientBalance?.TotalCredit ?? 0,
|
||||
UsedCredit = clientBalance?.UsedCredit ?? 0,
|
||||
//阶段三 §3.2 R2 口径:初始保证金=应付预付金流水净额(净收取为正);维持保证金=client_span 维持保证金(−MySideMargin)
|
||||
MySideMargin = clientBalance?.SwapInitMargin ?? 0,
|
||||
MaintenanceMargin = -(clientBalance?.MySideMargin ?? 0),
|
||||
CreditRatio = clientBalance?.CreditUsed ?? 0,
|
||||
Margin = clientBalance?.MarginByPayableMarginTotal ?? 0,
|
||||
Amount = (PS.Config.IsPVRounded ? clientBalance?.RoundedTotalAmountTotal : clientBalance?.TotalAmountTotal) ?? 0,
|
||||
@@ -408,6 +412,10 @@ namespace YLErp.Modules.ReportModule
|
||||
case "预付金占用": return report.FundReportModel.WorstCastClientPayableString;
|
||||
case "可用资金": return report.FundReportModel.AvailableFundString;
|
||||
case "授信额度": return report.FundReportModel.CreditString;
|
||||
//阶段三 §3.2 R2 估值报告字段口径
|
||||
case "已使用授信": return report.FundReportModel.UsedCreditString;
|
||||
case "初始保证金金额": return report.FundReportModel.MySideMarginString;
|
||||
case "维持保证金金额": return report.FundReportModel.MaintenanceMarginString;
|
||||
case "应付了结交易款": return report.FundReportModel.ClosedTradePayableFundString;
|
||||
case "应付存续交易款": return report.FundReportModel.PositionTradePayableFundString;
|
||||
case "存续交易期权费净额": return report.FundReportModel.PositionPremiumNetCashString;
|
||||
|
||||
Reference in New Issue
Block a user