Skip to content

Commit ab8a057

Browse files
committed
check for exists of every instruments
1 parent 94673ca commit ab8a057

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main_scope.go

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ TICKERS:
6262
if err != nil {
6363
s.logger.Fatalln(err)
6464
}
65+
if len(foundInstruments) == 0 {
66+
s.logger.Fatalln("instrument not found:", string(ticker))
67+
}
6568
for _, instrument := range foundInstruments {
6669
if instrument.Ticker == string(ticker) {
6770
s.tickerInstrument[ticker] = instrument

0 commit comments

Comments
 (0)