using YLErp.Commons; namespace YLErp.Modules.SuperviseReportModule.CFMMC2022.Model { public class NewSuperviseReportPositionModel : SuperviseReportBaseModel { /// /// 是否已敲入 /// public string KnockIn { get; set; } public double? _observeAverage { get; set; } /// /// 估值时已观察均价 /// public double? ObserveAverage { get { return _observeAverage; } set { _observeAverage = value != null ? Math.Abs(OtcFormatHelper.FormatValue(value.Value, 6)) : default(Nullable); } } /// /// 估值时已观察均价 /// public string ObserveAverageString { get { return ObserveAverage == null ? "" : ObserveAverage.Value.ToString("0.######"); } } /// /// 已平仓总名义金额 /// public string TotalClosedPositionsAmount{get; set;} /// /// 已平仓总名义数量 /// public string TotalClosedPositionsNumber { get; set; } /// /// 合约估值时标的价格 /// public string ContractValuationPrice { get; set; } public double? _contractPrice { get; set; } /// /// 合约价值 /// public double? ContractPrice { get { return _contractPrice; } set { _contractPrice = value != null ? OtcFormatHelper.FormatValue(value.Value, 4) : default(Nullable); } } /// /// 合约价值 /// public string ContractPriceString { get { return ContractPrice == null ? "" : ContractPrice.Value.ToString("0.####"); } } /// /// 估值方法 /// public string ValuationMethod { get; set; } /// /// 估值波动率 /// public string ValuationVolatility { get; set; } /// /// 一年有效天数 /// public int? ValidDays { get; set; } /// /// Delta /// public string Delta { get; set; } /// /// Gamma /// public string Gamma { get; set; } /// /// Vega /// public string Vega { get; set; } /// /// Theta /// public string Theta { get; set; } /// /// Rho /// public string Rho { get; set; } /// /// Gamma cash /// public string GammaCash { get; set; } /// /// 无风险利率 /// public double? _riskFreeRate { get; set; } /// /// 无风险利率 /// public double? RiskFreeRate { get { return _riskFreeRate; } set { _riskFreeRate = value != null ? Math.Abs(OtcFormatHelper.FormatValue(value.Value, 6)) : default(Nullable); } } /// /// 无风险利率 /// public string RiskFreeRateString { get { return RiskFreeRate == null ? "" : RiskFreeRate.Value.ToString("0.######"); } } /// /// 股息 /// public double? _dividend { get; set; } /// /// 股息 /// public double? Dividend { get { return _dividend; } set { _dividend = value != null ? Math.Abs(OtcFormatHelper.FormatValue(value.Value, 6)) : default(Nullable); } } /// /// 股息 /// public string DividendString { get { return Dividend == null ? "" : Dividend.Value.ToString("0.######"); } } } }