jmfernandes / robin_stocks

This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at
http://www.robin-stocks.com
MIT License
1.72k stars 464 forks source link

502 Server Error: Bad Gateway for url: https://nummus.robinhood.com/currency_pairs/ #267

Closed PAujla03 closed 3 years ago

PAujla03 commented 3 years ago

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

xinxic commented 3 years ago

I got the same issue.

PAujla03 commented 3 years ago

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.

PAujla03 commented 3 years ago

I guess this explains it...

https://finance.yahoo.com/news/robinhood-says-crypto-trading-having-030434053.html

Time to close this mystery.