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

finish options #2

Open
samjtro opened this issue May 13, 2022 · 3 comments
Open

finish options #2

samjtro opened this issue May 13, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request todo

Comments

@samjtro
Copy link
Member

samjtro commented May 13, 2022

Need to decide on a path forward for these sooner rather than later. Functions will either be individually typed (ie func Butterfly() []BUTTERFLY {}) OR grouped (ie func Butterfly() []STRATEGY {}). Need to do research into what the responses will look like from tda in all circumstances. If there are significant differences, individually typed but if not, group it.

@samjtro samjtro self-assigned this May 13, 2022
@samjtro
Copy link
Member Author

samjtro commented Jul 8, 2022

I need to get around to this eventually. I have separated all of the functions from the main file for readability; added benefit is that each file can have a separate Contract type to record data.
Makes this much easier

@samjtro samjtro added the enhancement New feature or request label Jul 18, 2022
@samjtro
Copy link
Member Author

samjtro commented Jul 19, 2022

From the looks of it, it seems that all of the different strategies (besides Analytical) use the same basic return structure. We can utilize a standard UNDERLYING/CONTRACT layout for all of the different strategies.

It is just going to be a question of creating custom structs for certain legs of the different strategies.

@samjtro
Copy link
Member Author

samjtro commented Aug 6, 2022

I am about 20% complete with this.

I am going to be using a Standard layout for all spreads, and a custom Interface (potentially struct) with maps of CONTRACTs for certain option calls. Most, however, are fairly straight forward in their returns.

@samjtro samjtro added the wip label Jun 6, 2024
@samjtro samjtro added todo and removed wip labels Jun 25, 2024
@samjtro samjtro removed this from the v1.0.0 - Schwab Data+Trading Hook milestone Jun 25, 2024
@samjtro samjtro added this to the v0.9.0 - Wrap Up milestone Jul 29, 2024
@samjtro samjtro changed the title Custom structs for strategy spreads finish options Oct 21, 2024
@samjtro samjtro mentioned this issue Oct 21, 2024
@samjtro samjtro mentioned this issue Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo
Projects
None yet
Development

No branches or pull requests

1 participant