Tutorials icon indicating copy to clipboard operation
Tutorials copied to clipboard

Introduction to options wrong code

Open Sharma-Rajat opened this issue 5 years ago • 0 comments

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]

Sharma-Rajat avatar Mar 31 '21 00:03 Sharma-Rajat