Skip to content

Introduction to options wrong code #369

@Sharma-Rajat

Description

@Sharma-Rajat

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions