public SettingsChangedEventArgs(Account[] changedAccounts, Account[] removedAccounts, InstrumentClient[] addedInstruments, InstrumentClient[] removedInstruments, InstrumentClient[] changedInstruments) { this.ChangedAccounts = changedAccounts; this.RemovedAccounts = removedAccounts; this.AddedInstruments = addedInstruments; this.RemovedInstruments = removedInstruments; this.ChangedInstruments = changedInstruments; }
public static Dictionary<Guid, Account> GetInitializeTestDataForAccount() { Dictionary<Guid, Account> accounts = new Dictionary<Guid, Account>(); Account account = new Account(); account.Id = new Guid("9538eb6e-57b1-45fa-8595-58df7aabcfc9"); account.Code = "DEAccount009"; Account account2 = new Account(); account2.Id = new Guid("9538eb6e-57b1-45fa-8595-58df7aabcfc8"); account2.Code = "DEAccount008"; Account account3 = new Account(); account3.Id = new Guid("9538eb6e-57b1-45fa-8595-58df7aabcfc7"); account3.Code = "DEAccount007"; accounts.Add(account.Id, account); accounts.Add(account2.Id, account2); accounts.Add(account3.Id, account3); return accounts; }
public Transaction(CommonOrder commonOrder, Account account, InstrumentClient instrument) { this.Account = account; this.Instrument = instrument; this.Initialize(commonOrder); }
public Transaction(CommonTransaction tran,Account account,InstrumentClient instrument) { this.Account = account; this.Instrument = instrument; this.Update(tran); }
internal void Update(Order order) { this._ExchangeCode = order.ExchangeCode; this._OrderId = order.Id; this._Code = order.Code; this._Phase = order.Phase; this._OrderStatus = order.Status; this._IsBuy = order.BuySell; this._IsOPen = order.OpenClose; this._Lot = order.Lot; this._ContractSize = order.Transaction.ContractSize; this._OrderType = order.Transaction.OrderType; this._OrderTypeString = order.Type; this._SetPrice = order.SetPrice; this._SubmitDateTime = order.Transaction.SubmitTime; this._ExpireTime = order.Transaction.SubmitTime; this._Account = order.Transaction.Account; this._Transaction = order.Transaction; this._Instrument = order.Transaction.Instrument; this._HitCount = order.HitCount; this._BestPrice = order.BestPrice; this._BestTime = order.BestTime; this.ChangeStatus(this._OrderStatus); }