I am trying to write a trading algo and I am moving through tickers for quote. When I come to a certain tickers that responds with []. My list stops iterating. I have tried several different if statements to move past any ticker that returns [] but it is still stopping on these tickers, any ideas?
if(msg == undefined || msg == []){
count++
nextTicker()
getVolume()
// console.log("Next Ticker: ", nextTicker1, "Next Quote: ", nextQuote1)
// console.log(msg)
}else if(msg.price == null || msg.price == undefined){
count++
nextTicker()
getVolume()
}else if(msg.price != null){
count++
nextTicker()
getVolume()
console.log("Next Ticker: ", nextTicker1, "Next Quote: ", nextQuote1)
console.log(msg)
}