Skip to content

The Default Value for 'stocklike' #441

@tonylegend

Description

@tonylegend

Hi,

I wonder why the default param value for 'stocklike' is initialized in the comminfo as False. I think that is used for instruments like Futures. The calculation of the position and cash adjustment underlying are different than stocks. If 'margin' is set to None, the actual 'stocklike' value is True, then it is not necessary to declare it explicitly and a little bit confusing.

AlpacaCommInfo(mult=1.0, stocklike=False))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions