robinhood-unofficial / pyrh

Python Framework to make trades with the unofficial Robinhood API
https://pyrh.readthedocs.io/en/latest/
MIT License
1.78k stars 603 forks source link

In the 'get_options()' function an 'AttributeError' exception occurs due to wrong method name being used #260

Closed clay-moss closed 4 years ago

clay-moss commented 4 years ago

Checklist

Description

In the 'get_options()' function an 'AttributeError' exception occurs due to wrong method name being used

https://github.com/robinhood-unofficial/pyrh/blob/ff1a0661f01f2b5fa4a30473781ddb72004b3d21/pyrh/robinhood.py#L502

Steps/Code to Reproduce

from pyrh import Robinhood

rh = Robinhood(username='xxx', password='xxx')
rh.login()

rh.get_options('SPY', '2020-06-30', 'call')  

Note: PR #259 must be merged to find this issue as another exception is hit before this one

Results

Traceback (most recent call last):
  File "C:/Users/Clayton/PycharmProjects/vix-pc-ratio-algo/algo.py", line 10, in <module>
    rh.get_options('SPY', '2020-06-30', 'call')
  File "C:\Users\Clayton\PycharmProjects\vix-pc-ratio-algo\venv\lib\site-packages\pyrh\robinhood.py", line 502, i
n get_options
    urls.options(chain_id, _expiration_dates_string, option_type)
AttributeError: module 'pyrh.urls' has no attribute 'options'

Versions

Windows-10-10.0.18362-SP0 Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] pyrh 2.0

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.