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

positions_data error #1

Closed
djhemp opened this issue May 5, 2019 · 1 comment
Closed

positions_data error #1

djhemp opened this issue May 5, 2019 · 1 comment

Comments

@djhemp
Copy link

djhemp commented May 5, 2019

the robin-stocks author pushed an update on github that says it's working for him with 2FA turned on. I got it going, but I get these errors now.

Traceback (most recent call last):
File "C:\RobinhoodBot\robinhoodbot\main.py", line 258, in
scan_stocks()
File "C:\RobinhoodBot\robinhoodbot\main.py", line 242, in scan_stocks
sell_holdings(symbol, holdings_data)
File "C:\RobinhoodBot\robinhoodbot\main.py", line 186, in sell_holdings
shares_owned = int(float(positions_data[symbol].get("quantity")))
NameError: name 'positions_data' is not defined

@djhemp
Copy link
Author

djhemp commented May 17, 2019

Figured this out. It was a stock I was holding that filed for bankruptcy! Somehow it was messing with robin-stocks.

@2018kguo 2018kguo closed this as completed Aug 4, 2020
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

2 participants