We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The index of Option Universe is Symbol/Time.
All the Symbols are the same for a given time:
Review how Symbol is acquired.. it should come from a Data member.
Data
self = QuantBook() self.set_start_date(2020, 1, 1) underlying = self.add_equity("SPY", data_normalization_mode=DataNormalizationMode.RAW).symbol option_chain = self.option_chain(underlying).data_frame print(option_chain.index.get_level_values('symbol').drop_duplicates()) print(option_chain.shape)
Logs:
Index(['SPY XFH59UO5PUUE|SPY R735QTJ8XC9X'], dtype='object', name='symbol') (6964, 12) It should have 6964 indices after we call drop_duplicates.
master
The text was updated successfully, but these errors were encountered:
QCAlgorithm
OptionChain()
jhonabreul
Successfully merging a pull request may close this issue.
Expected Behavior
The index of Option Universe is Symbol/Time.
Actual Behavior
All the Symbols are the same for a given time:
Potential Solution
Review how Symbol is acquired.. it should come from a
Data
member.Reproducing the Problem
Logs:
Checklist
master
branchThe text was updated successfully, but these errors were encountered: