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

The Default Value for 'stocklike' #441

Open
tonylegend opened this issue May 22, 2022 · 0 comments
Open

The Default Value for 'stocklike' #441

tonylegend opened this issue May 22, 2022 · 0 comments

Comments

@tonylegend
Copy link

tonylegend commented May 22, 2022

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))
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