From ab8a057a1101a4cf58cfd631dd6a3482389bcb87 Mon Sep 17 00:00:00 2001 From: Anton Osenenko <418868+a0s@users.noreply.github.com> Date: Tue, 25 Aug 2020 14:12:00 +0300 Subject: [PATCH] check for exists of every instruments --- main_scope.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main_scope.go b/main_scope.go index f8083ae..975afe8 100644 --- a/main_scope.go +++ b/main_scope.go @@ -62,6 +62,9 @@ TICKERS: if err != nil { s.logger.Fatalln(err) } + if len(foundInstruments) == 0 { + s.logger.Fatalln("instrument not found:", string(ticker)) + } for _, instrument := range foundInstruments { if instrument.Ticker == string(ticker) { s.tickerInstrument[ticker] = instrument