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

Calling optionsDF with a strategy parameter throws an error. #149

Open
JimCollinsDC opened this issue Jan 16, 2022 · 0 comments
Open

Calling optionsDF with a strategy parameter throws an error. #149

JimCollinsDC opened this issue Jan 16, 2022 · 0 comments

Comments

@JimCollinsDC
Copy link

Describe the bug
Calling optionsDF with a strategy parameter throws an error, KeyError: 'tradeTimeInLong', because the 'Strategy' parameter returns a JSON object of potential trades matching that strategy.

To Reproduce
Steps to reproduce the behavior:

  1. Run options = td.optionsDF(symbol='SPY',strategy="VERTICAL",interval=5)
  2. see error
  3. Run options = td.options(symbol='SPY',strategy="VERTICAL",interval=5)
  4. see expected result

Expected behavior
I would expect the error to be caught and/or calling optionsDF with a strategy parameter to return some sort of error code

Additional context
I would fork this, fix the error, and submit a pull request, but not sure of the best way to fix this.

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

1 participant