namespace YLErp.Modules.RiskModule { public class HedgeRiskMonitoringReportModel { public QuotaTargetReport QuotaTargetReport { get; set; } public RiskCollectReport RiskCollectReport { get; set; } public BondMonitorReport BondMonitorReport { get; set; } public Commons.ExpandoDictionary[] PositionRiskReport { get; set; } public Commons.ExpandoDictionary[] OptionSettleReport { get; set; } } /// /// 限额指标对象 /// public class QuotaTargetReport { #region 限额 /// /// 止损 /// public double? QuotaStopLoss { get; set; } /// /// 风险价值 /// public double? QuotaCostRisk { get; set; } /// /// 压力测试 /// public double? QuotaPressureTest { get; set; } /// /// CashDelta /// public double? QuotaCashDelta { get; set; } /// /// 合约期限(原则上不超1年) /// public string QuotaContractTerm { get; set; } /// /// 标的集中度(<=10%) /// public string QuotaUnderlyingConcentration { get; set; } /// /// 存续名义本金 /// public double? QuotaStockEqvNotional { get; set; } /// /// 预付金占用 /// public double? QuotaMarginHold { get; set; } #endregion /// /// 止损(从2022年初的累计盈亏,数据来源是市场那张表的“汇总”) /// public double StopLoss { get; set; } /// /// 风险价值(风险价值是 VAR(日,95%)) /// public double? CostRisk { get; set; } /// /// 压力测试(压力测试从这个压力测试表里面取最大亏损,表的参数设置如上 压力测试是 20%的不利变动带来的最大损失) /// public double? PressureTest { get; set; } /// /// CashDelta /// public double CashDelta { get; set; } /// /// 存续名义本金 /// public double StockEqvNotional { get; set; } /// /// 预付金占用 /// public double MarginHold { get; set; } } /// /// 汇总对象 /// public class RiskCollectReport { public List PortfolioList { get; set; } public RiskExposure.EodRiskModel PortfolioSum { get; set; } /// /// 报告开始日期 /// public string ReportStart { get; set; } /// /// 报告截止日期 /// public string ReportEnd { get; set; } } /// /// 预付金监控对象 /// public class BondMonitorReport { public double SumBondMonitor { get; set; } public List BondMonitorDetails { get; set; } } public class BondMonitorDetail { /// /// 客户名称 /// public string ClientName { get; set; } /// /// 应收预付金 /// public double? DepositReceivable { get; set; } /// /// 授信+期末结存 /// public double? CreditAndClosingBalance { get; set; } /// /// 应付预付金 /// public double? DepositPayable { get; set; } private string _isAppened = null; /// /// 是否追加 /// public string IsAppened { get { if (_isAppened == null) { return (DepositReceivable ?? 0) <= ((CreditAndClosingBalance ?? 0) + (DepositPayable ?? 0)) ? "否" : "是"; } return _isAppened; } set { _isAppened = value; } } /// /// 是否当日客户是否发生风险事件 /// public string IsRiskEventToDay { get; set; } = "否"; } }