public void AddRawInstrument(RawInstrument ri, InstrumentShared ins) { InstrumentType insType; if (instrumentTypeCache.ContainsKey(ri.strategyType)) { insType = instrumentTypeCache[ri.strategyType]; } else { insType = new InstrumentType(ri.strategyType); this.instrumentTypeCache.Add(ri.strategyType, insType); } insType.AddRawInstrument(ri, ins); }