using System.ComponentModel.DataAnnotations.Schema;
namespace YLErp.DBModels
{
///
/// 报价参数
///
[Table("underlying_parameter")]
public class underlying_parameter : DBModelWithOperator
{
public const string CallAsk = "CallAsk";
public const string CallBid = "CallBid";
public const string PutAsk = "PutAsk";
public const string PutBid = "PutBid";
public static List callQuoteTypes = new List { CallAsk, CallBid };
public static List putQuoteTypes = new List { PutAsk, PutBid };
public static List defaultQuoteTypes = new List { CallBid, CallAsk, PutBid, PutAsk };
public static string LogClass = "标的报价参数";
///
/// 波动率属性
///
[DisplayName("波动率属性")]
public string VolatilityProperty { get; set; }
///
/// 这边应该是 实际数值,例如0.05,代表5%
///
[DisplayName("无风险利率")]
public double? NoRiskRate { get; set; }
public double? Other { get; set; }
///
/// 标的信息
///
[DisplayName("标的信息")]
public int? UnderlyingId { set; get; }
///
/// 类型
///
[DisplayName("类型")]
public string Type { set; get; } = "";
///
///
///
[DisplayName("Price")]
public double? Price { set; get; }
///
///
///
[DisplayName("Delta")]
public double? Delta { set; get; }
///
///
///
[DisplayName("Gamma")]
public double? Gamma { set; get; }
///
///
///
[DisplayName("Theta")]
public double? Theta { set; get; }
///
///
///
[DisplayName("Vega")]
public double? Vega { set; get; }
///
///
///
[DisplayName("Rho")]
public double? Rho { set; get; }
///
/// 是否有效_validstate
///
[DisplayName("是否有效")]
public string ValidState { set; get; } = "";
public underlying_parameter Clone()
{
return (underlying_parameter)MemberwiseClone();
}
}
[NotMapped]
public class underlying_parameterDto : underlying_parameter
{
}
}