internal InstrumentResetItem GetResetItem(DateTime tradeDay) { InstrumentResetItem result; if (!_resetItemHistoryDict.TryGetValue(tradeDay, out result)) { var histories = ResetManager.Default.GetAccountInstrumentResetHistory(_owner.Id, this.Id, tradeDay); if (histories == null || histories.Count() == 0) { return(null); } result = new InstrumentResetItem(histories.Single()); _resetItemHistoryDict.AddItem(result, OperationType.AsNewRecord); } return(_resetItemHistoryDict[tradeDay]); }
internal AccountClass.Instrument Get(Guid instrumentId) { AccountClass.Instrument result; _instruments.TryGetValue(instrumentId, out result); return(result); }