internal void Fill(Protocal.TransactionCommonData tranData)
 {
     this.Id                        = tranData.Id;
     this.InstrumentId              = tranData.InstrumentId;
     this.Type                      = tranData.Type;
     this.SubType                   = tranData.SubType;
     this.OrderType                 = tranData.OrderType;
     this.FreePlacingPreCheck       = tranData.FreePlacingPreCheck;
     this.PlaceByRiskMonitor        = tranData.PlaceByRiskMonitor;
     this.DisableAcceptLmtVariation = tranData.DisableLmtVariation;
     this.BeginTime                 = tranData.BeginTime;
     this.EndTime                   = tranData.EndTime;
     this.ExpireType                = tranData.ExpireType;
     this.SubmitorId                = tranData.SubmitorId;
     this.SubmitTime                = tranData.SubmitTime;
     this.SourceOrderId             = tranData.SourceOrderId;
     this.AppType                   = tranData.AppType;
 }
        private static AddTransactionCommandFactoryBase GetAddTranCommandFactory(this Protocal.TransactionCommonData tranData)
        {
            var instrument = Settings.Setting.Default.GetInstrument(tranData.InstrumentId);

            return(TransactionFacade.CreateAddTranCommandFactory(tranData.OrderType, instrument.Category));
        }