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
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