internal void Add(AccountClass.Instrument instrument) { if (!_instruments.ContainsKey(instrument.Id)) { _instruments.AddItem(instrument, OperationType.AsNewRecord); } }
internal void AddResetItem(DateTime tradeDay, InstrumentResetItem resetItem) { if (_resetItemHistoryDict.ContainsKey(tradeDay)) { Logger.WarnFormat("AddResetItem already Exists tradeDay = {0}, instrumentId ={1}, resetItem = {2}, previousResetItem = {3}", tradeDay, this.Id, resetItem, _resetItemHistoryDict[tradeDay]); } else { _resetItemHistoryDict.AddItem(resetItem, OperationType.AsNewRecord); } }
internal bool ContainsOrderRelation(Guid openOrderId) { return(_orderRelations.ContainsKey(openOrderId)); }