public Transaction(CommonOrder commonOrder, Account account, InstrumentClient instrument)
 {
     this.Account = account;
     this.Instrument = instrument;
     this.Initialize(commonOrder);
 }
 internal void Initialize(CommonOrder commonOrder)
 {
     this.Id = commonOrder.TransactionId;
      this.BeginTime = commonOrder.BeginTime;
      this.Code = commonOrder.Code;
      this.ContractSize = commonOrder.ContractSize;
      this.EndTime = commonOrder.EndTime;
      this.ExecuteTime = commonOrder.ExecuteTime;
      this.ExpireType = commonOrder.ExpireType;
      this.OrderType = commonOrder.OrderType;
      this.Phase = commonOrder.Phase;
      this.SubmitorId = commonOrder.SubmitorID;
      this.SubmitTime = commonOrder.SubmitTime;
      this.Type = commonOrder.TransactionType;
      this.SubType = commonOrder.TransactionSubType;
      this.AssigningOrderId = commonOrder.AssigningOrderID;
      this.InstrumentCategory = this.Instrument.Category;
 }