-
Notifications
You must be signed in to change notification settings - Fork 66
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
Adding option strategies support #49
Conversation
Updated to include option chains
Included pandas in requirements.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for the contribution! I left a few nitpick comments!
I made the requested changes. I like the idea of class-wide enumerators for the different option strategies or order types. I'm not totally sure on the best approach. I'd like to get the current pull request approved as is for now. It's probably only one of more pull requests to come. With options, I have a big question mark around handling option assignments before expiration. I saw that account positions have child positions. I wonder if that's where those will be referenced at. I hate that Schwab doesn't come with a paper trading account to figure this out. |
Extending functionalities to enable option trading strategies supported by Schwabs.
Adding to the Schwab class:
Also included an example file that pulls the option chains, helps normalize the json response into a pandas dataframe and creates a dry run on an option straddle strategy.