Beispiel #1
0
        public static ClientInstrument GetInstrumentByServiceKey(ClientInstrumentBatch InstrBatch, string serviceKey)
        {
            if (InstrBatch == null)
            {
                throw new Exception("Initial load for instrument not finished!");
            }

            return(GetInstrumentByIntInstrumentId(InstrBatch, serviceKey));
        }
Beispiel #2
0
        public static ClientInstrument GetInstrumentByIntInstrumentId(ClientInstrumentBatch InstrBatch, string instrumentId)
        {
            ClientInstrument instr = InstrBatch.messages.Where(x => x.InstrumentId == instrumentId).FirstOrDefault();

            return(instr);
        }
Beispiel #3
0
 public static ClientInstrument GetInstrumentBySymbol(ClientInstrumentBatch InstrBatch, string symbol)
 {
     return(InstrBatch.messages.Where(x => x.InstrumentName == symbol).FirstOrDefault());
 }