コード例 #1
0
ファイル: Instrument.cs プロジェクト: damoye/QTS
 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;
 }
コード例 #2
0
ファイル: Instrument.cs プロジェクト: botvs/QTS
 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;
 }