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

ENHANCE: abstracted endpoints to separate module, refactor 2 methods #84

Merged

Conversation

jasonleehodges
Copy link
Collaborator

@jasonleehodges jasonleehodges commented Apr 3, 2018

The purpose of this pull request is to abstract the endpoint dictionary into a separate module of functions that can be modified as the Robinhood API grows. I intend to contribute functionality for new options endpoints that I have discovered but the current dictionary would require several iterations of the same endpoint for the right functionality.

See get_popularity() and get_tickers_by_tag() for examples of how these new endpoints functions have been implemented in the main module. Also see the ach() function in the endpoints.py file to see how abstracting the endpoints can make this library more flexible, allowing the combination of 3 dictionary items into 1 function.

@jasonleehodges
Copy link
Collaborator Author

If there are no objections to this abstraction I can begin implementing this version of the endpoints throughout the rest of the library.

@Jamonek Jamonek merged commit bd3c43e into robinhood-unofficial:master Apr 9, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants