anilshanbhag / RobinhoodShell

A command line shell for trading stocks using Robinhood
MIT License
411 stars 94 forks source link

Crashes because I have options purchased #40

Open TheCrockett opened 3 years ago

TheCrockett commented 3 years ago

It works fine when my account has stocks, but when I have options in my account it crashes and burns:

(I get that options aren't 'supported', but it shouldn't die should it? )

Traceback (most recent call last): File "shell.py", line 627, in RobinhoodShell().cmdloop() File "/usr/lib64/python3.8/cmd.py", line 138, in cmdloop stop = self.onecmd(line) File "/usr/lib64/python3.8/cmd.py", line 217, in onecmd return func(arg) File "shell.py", line 141, in do_l market_data = self.trader.get_stock_marketdata(instruments) File "/home/bcrockett/Downloads/RobinhoodShell/Robinhood/Robinhood.py", line 474, in get_stock_marketdata return info['results'] KeyError: 'results'