public Instrument(ThostFtdcInstrumentField field) { this.InstrumentID = field.InstrumentID; this.ExchangeID = field.ExchangeID; this.InstrumentName = field.InstrumentName; this.ExchangeInstID = field.ExchangeInstID; this.ProductID = field.ProductID; this.ProductClass = field.ProductClass; this.DeliveryYear = field.DeliveryYear; this.DeliveryMonth = field.DeliveryMonth; this.MaxMarketOrderVolume = field.MaxMarketOrderVolume; this.MinMarketOrderVolume = field.MinMarketOrderVolume; this.MaxLimitOrderVolume = field.MaxLimitOrderVolume; this.MinLimitOrderVolume = field.MinLimitOrderVolume; this.VolumeMultiple = field.VolumeMultiple; this.PriceTick = field.PriceTick; this.CreateDate = field.CreateDate; this.OpenDate = field.OpenDate; this.ExpireDate = field.ExpireDate; this.StartDelivDate = field.StartDelivDate; this.EndDelivDate = field.EndDelivDate; this.InstLifePhase = field.InstLifePhase; this.IsTrading = field.IsTrading; this.PositionType = field.PositionType; this.PositionDateType = field.PositionDateType; this.LongMarginRatio = field.LongMarginRatio; this.ShortMarginRatio = field.ShortMarginRatio; this.MaxMarginSideAlgorithm = field.MaxMarginSideAlgorithm; this.UnderlyingInstrID = field.UnderlyingInstrID; this.StrikePrice = field.StrikePrice; this.OptionsType = field.OptionsType; this.UnderlyingMultiple = field.UnderlyingMultiple; this.CombinationType = field.CombinationType; }
public Instrument(ThostFtdcInstrumentField field) { this.InstrumentID = field.InstrumentID; this.ExchangeID = field.ExchangeID; this.InstrumentName = field.InstrumentName; this.ExchangeInstID = field.ExchangeInstID; this.ProductID = field.ProductID; this.ProductClass = field.ProductClass; this.DeliveryYear = field.DeliveryYear; this.DeliveryMonth = field.DeliveryMonth; this.MaxMarketOrderVolume = field.MaxMarketOrderVolume; this.MinMarketOrderVolume = field.MinMarketOrderVolume; this.MaxLimitOrderVolume = field.MaxLimitOrderVolume; this.MinLimitOrderVolume = field.MinLimitOrderVolume; this.VolumeMultiple = field.VolumeMultiple; this.PriceTick = field.PriceTick; this.CreateDate = field.CreateDate; this.OpenDate = field.OpenDate; this.ExpireDate = field.ExpireDate; this.StartDelivDate = field.StartDelivDate; this.EndDelivDate = field.EndDelivDate; this.InstLifePhase = field.InstLifePhase; this.IsTrading = field.IsTrading; this.PositionType = field.PositionType; this.PositionDateType = field.PositionDateType; this.LongMarginRatio = field.LongMarginRatio; this.ShortMarginRatio = field.ShortMarginRatio; this.MaxMarginSideAlgorithm = field.MaxMarginSideAlgorithm; this.UnderlyingInstrID = field.UnderlyingInstrID; this.StrikePrice = field.StrikePrice; this.OptionsType = field.OptionsType; this.UnderlyingMultiple = field.UnderlyingMultiple; this.CombinationType = field.CombinationType; }