Closed PAujla03 closed 3 years ago
I got the same issue.
The only success I have had is with method r.load_account_profile() All methods in crypto.py and some in orders.py have failed for me.
I guess this explains it...
https://finance.yahoo.com/news/robinhood-says-crypto-trading-having-030434053.html
Time to close this mystery.
Hi,
I keep getting the 502 Server Error when I try to run r.crypto.get_crypto_historicals('BTC', '15second', 'hour', info='high_price')
Any suggestion would be appreciated.
Traceback (most recent call last): File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/robin_stocks/robinhood/helper.py", line 33, in login_wrapper
return(func(*args, **kwargs))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/robin_stocks/robinhood/crypto.py", line 212, in get_crypto_historicals
id = get_crypto_info(symbol[0], info='id')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/robin_stocks/robinhood/crypto.py", line 103, in get_crypto_info
data = [x for x in data if x['asset_currency']['code'] == symbol]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/robin_stocks/robinhood/crypto.py", line 103, in
data = [x for x in data if x['asset_currency']['code'] == symbol]
TypeError: 'NoneType' object is not subscriptable