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

KeyError: 'results' #8

Open
jayomayan opened this issue Sep 4, 2020 · 8 comments
Open

KeyError: 'results' #8

jayomayan opened this issue Sep 4, 2020 · 8 comments

Comments

@jayomayan
Copy link

I'm getting this error.. sorry, kinda new with Python.

Getting historical quotes
Traceback (most recent call last):
  File "RobinhoodBot.py", line 64, in <module>
    s.run()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/sched.py", line 151, in run
    action(*argument, **kwargs)
  File "RobinhoodBot.py", line 28, in run
    for key in historical_quotes["results"][0]["historicals"]:
KeyError: 'results'
@jayomayan
Copy link
Author

I get that error when using it on Crypto.

@ShortMan443
Copy link

make sure that crypto is supported by the Robinhood Library.

@JathanT
Copy link

JathanT commented Sep 11, 2020

I'm having the same issue with BTC, any help to get this working would be much appreciated.

@ShortMan443
Copy link

ShortMan443 commented Sep 11, 2020 via email

@JathanT
Copy link

JathanT commented Sep 11, 2020

Make sure that the robinhood api supports Bitcoin. And check their docs for the symbol. Sent via Superhuman ( https://sprh.mn/?vip=afidgety@gmail.com )

On Fri, Sep 11, 2020 at 9:39 AM, JathanT < @.*** > wrote: I'm having the same issue with BTC, any help to get this working would be much appreciated. — You are receiving this because you commented. Reply to this email directly, view it on GitHub ( #8 (comment) ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AJJ23WJPTNT7CDLBKWVDTWDSFISADANCNFSM4QW2TV3A ).

Sweet, how do I do that?

@ShortMan443
Copy link

ShortMan443 commented Sep 12, 2020 via email

@Jake0303
Copy link
Owner

Jake0303 commented Oct 2, 2020

Don't think pyrh supports Crypto

@ShadowIterum
Copy link

ShadowIterum commented Apr 5, 2021

Hello,

I'm also getting this error, not using it with crypto. Tried it with BAC. Please let me know if you have any clues about what my issue may be.

File "C:\Users\user\Documents\Trading Code\RobinhoodRSITemplate\pyrh.py", line 60, in __init__

acc = self.get_account_number()

File "C:\Users\user\Documents\Trading Code\RobinhoodRSITemplate\pyrh.py", line 112, in get_account_number

res = res.json()['results'][0]

KeyError: 'results'

Thanks!

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

5 participants