diff --git a/objects/broker/robinhood/OptionInstrument.js b/objects/broker/robinhood/OptionInstrument.js index c7fb2f0..c07ae9a 100755 --- a/objects/broker/robinhood/OptionInstrument.js +++ b/objects/broker/robinhood/OptionInstrument.js @@ -118,6 +118,7 @@ class OptionInstrument extends Robinhood { } }, (error, response, body) => { return Robinhood.handleResponse(error, response, body, user.getAuthToken(), res => { + if (!Array.isArray(res)) res = [res]; let array = []; instruments.forEach(instrument => { let price = _.find(res, o => {