You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Run options = td.optionsDF(symbol='SPY',strategy="VERTICAL",interval=5)
see error
Run options = td.options(symbol='SPY',strategy="VERTICAL",interval=5)
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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: