Hello, I'm relatively new to GitHub and haven't submitted any sort of error feedback before. I downloaded and ran this bot code, which seems to work anywhere from 1 -5'ish minutes, before it repeatedly logs me out. I can immediately re-run the program, but it requires putting in the 2FA code from my phone every time. Here's an example of the error I keep getting when it bombs out:
An error occured: stopping process
logout successful
Traceback (most recent call last):
File "/home/jwest/Robinhood-Crypto-Autotrader/main.py", line 504, in
tr.sell_times[i][tr.convert_timestamp_to_datetime(crypto_historicals[i][backtest_index]['begins_at'])] = 'unable_to_sell'
NameError: name 'crypto_historicals' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jwest/Robinhood-Crypto-Autotrader/main.py", line 590, in
rh.export.export_completed_crypto_orders('./', 'completed_crypto_orders')
File "/home/jwest/.local/lib/python3.10/site-packages/robin_stocks/robinhood/helper.py", line 31, in login_wrapper
raise Exception('{} can only be called when logged in'.format(
Exception: export_completed_crypto_orders can only be called when logged in
I can't tell if it's executing a specific step when it crashes out, but it won't seem to run for more than 5'ish minutes at a time. Thanks!