Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unauthorized for url: https://api.robinhood.com/ #38

Open
HMSS013 opened this issue Oct 13, 2020 · 0 comments
Open

Unauthorized for url: https://api.robinhood.com/ #38

HMSS013 opened this issue Oct 13, 2020 · 0 comments

Comments

@HMSS013
Copy link

HMSS013 commented Oct 13, 2020

Login works as intended, but unable to trade or get portfolio data since Robinhood maintenance cycle last night.

$./shell.py 
Welcome to the Robinhood shell. Type help or ? to list commands.

> l
Traceback (most recent call last):
  File "./shell.py", line 564, in <module>
    RobinhoodShell().cmdloop()
  File "/usr/lib64/python2.7/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "./shell.py", line 60, in do_l
    portfolio = self.trader.portfolios()
  File "/home/Z8/ETF/Shell/Robinhood.py", line 826, in portfolios
    req.raise_for_status()
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.robinhood.com/portfolios/


$ ./shell.py 
Welcome to the Robinhood shell. Type help or ? to list commands.

> b SPY 1 300.00
Traceback (most recent call last):
  File "./shell.py", line 564, in <module>
    RobinhoodShell().cmdloop()
  File "/usr/lib64/python2.7/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "./shell.py", line 227, in do_b
    res = self.trader.place_buy_order(stock_instrument, quantity, price)
  File "/home/Z8/ETF/Shell/Robinhood.py", line 1586, in place_buy_order
    return self.place_order(instrument, quantity, ask_price, transaction)
  File "/home/Z8/ETF/Shell/Robinhood.py", line 1538, in place_order
    'account': self.get_account()['url'],
  File "/home/Z8/ETF/Shell/Robinhood.py", line 701, in get_account
    res.raise_for_status()  # auth required
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.robinhood.com/accounts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant