예제 #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));
        }
예제 #2
0
        public static ClientInstrument GetInstrumentByIntInstrumentId(ClientInstrumentBatch InstrBatch, string instrumentId)
        {
            ClientInstrument instr = InstrBatch.messages.Where(x => x.InstrumentId == instrumentId).FirstOrDefault();

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