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

Introduction to options wrong code #369

Open
Sharma-Rajat opened this issue Mar 31, 2021 · 0 comments
Open

Introduction to options wrong code #369

Sharma-Rajat opened this issue Mar 31, 2021 · 0 comments

Comments

@Sharma-Rajat
Copy link

Sharma-Rajat commented Mar 31, 2021

Currently in quantconnect documentation there is a line that helps filter for puts or calls but the code is incorrect.

current:

put = [x for x in optionchain if chain.Right == 1]
call = [x for x in optionchain if chain.Right == 0]

suggested:

put = [x for x in chain if x.Right == 1]
call = [x for x in chain if x.Right == 0]
@AlexCatarino AlexCatarino transferred this issue from QuantConnect/Documentation Jul 6, 2022
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