Skip to content

Commit

Permalink
check for exists of every instruments
Browse files Browse the repository at this point in the history
  • Loading branch information
a0s committed Aug 25, 2020
1 parent 94673ca commit ab8a057
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab8a057

Please sign in to comment.