yura505 / robinbot

Robinhood API based swing trading bot
134 stars 35 forks source link

^ TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined #16

Closed nton232 closed 6 years ago

nton232 commented 6 years ago

I ran ./robinbot.js and got this error . I dont have that error few days ago .

Downloading instruments: [ AMZN /home/nton232/projects/crypto2/robinbot/instruments.js:16 for (let t of body.results) { ^

TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined at Request._callback (/home/nton232/projects/crypto2/robinbot/instruments.js:16:37) at Request.self.callback (/home/nton232/projects/crypto2/robinbot/node_modules/request/request.js:185:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request. (/home/nton232/projects/crypto2/robinbot/node_modules/request/request.js:1157:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage. (/home/nton232/projects/crypto2/robinbot/node_modules/request/request.js:1079:12) at IncomingMessage.g (events.js:292:16) at emitNone (events.js:91:20)

nton232 commented 6 years ago

Trying run that in the morning when market is open . It works with no more that error