public Transaction(CommonTransaction tran,Account account,InstrumentClient instrument) { this.Account = account; this.Instrument = instrument; this.Update(tran); }
internal void Update(CommonTransaction transaction) { this.Id = transaction.Id; this.BeginTime = transaction.BeginTime; this.Code = transaction.Code; this.ContractSize = transaction.ContractSize; this.EndTime = transaction.EndTime; this.ExecuteTime = transaction.ExecuteTime; this.ExpireType = transaction.ExpireType; this.OrderType = transaction.OrderType; this.Phase = transaction.Phase; this.SubmitorId = transaction.SubmitorId; this.SubmitTime = transaction.SubmitTime; this.Type = transaction.Type; this.SubType = transaction.SubType; this.AssigningOrderId = transaction.AssigningOrderId; this.InstrumentCategory = transaction.InstrumentCategory == null ? InstrumentCategory.Forex : transaction.InstrumentCategory.Value; }