namespace YLErp.Modules.PricingModule { public class VueTemplateModel { public string structureType { get; set; } public List datas { get; set; } } public class pricingTemplateData { public OtcOptionTradeFull trade { get; set; } } public class HistoricalBacktestReq { /// /// 模板Id /// public string encryptId { get; set; } /// /// 维度 /// public string[] Range { get; set; } /// /// 指标 /// public string[] Index { get; set; } } /// /// 上传价格序列模型 /// public class HistoricalBacktestPriceModel { /// /// 标的名称 /// public string UnderlyingName { get; set; } /// /// 标的代码 /// public string UnderlyingCode { get; set; } /// /// 时间序列 /// public DateTime TimeSeries { get; set; } /// /// 标的价格 /// public double Price { get; set; } } /// /// 回测结果模型 /// public class HistoricalBacktestRes : HistoricalBacktestPriceModel { public HistoricalBacktestRes() { } public HistoricalBacktestRes(HistoricalBacktestPriceModel priceObj) { this.UnderlyingName = priceObj.UnderlyingName; this.UnderlyingCode = priceObj.UnderlyingCode; this.TimeSeries = priceObj.TimeSeries; this.ValueDate = priceObj.TimeSeries.Date.ToString("yyyy-MM-dd"); this.Price = priceObj.Price; } /// /// 估值日期 /// public string ValueDate { get; set; } /// /// /// public double delta { get; set; } /// /// /// public double deltaCash { get; set; } /// /// /// public double deltaInLots { get; set; } /// /// /// public double gamma { get; set; } /// /// /// public double vega { get; set; } /// /// /// public double rho { get; set; } /// /// /// public double theta { get; set; } } }