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

[Bug]: Stock Split Updates are not handled in bracket orders #469

Open
2 tasks done
eric-stanley opened this issue Jun 10, 2024 · 1 comment
Open
2 tasks done

[Bug]: Stock Split Updates are not handled in bracket orders #469

eric-stanley opened this issue Jun 10, 2024 · 1 comment

Comments

@eric-stanley
Copy link

eric-stanley commented Jun 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I make a bracket order of NVDA stock with the below options

1. Order type as 'BUY'
2. Market Buy amount as $1190.00
3. Limit Sell amount as $1210.00
4. Stop loss as $1185.00
5. For 5 shares

And when the stock split happens during off-hours or weekends (assuming 1:10 split)

The order is not updated fully updated and only the share counts are updated as below

1. Order type as 'BUY'
2. Market Buy amount as $1190.00
3. Limit Sell amount as $1210.00
4. Stop loss as $1185.00
5. For 50 shares

Which results in selling 5 shares when the market opens at $119.5 (assuming that the price before split was $1195 when the market opened) as the stop loss condition has met

Expected Behavior

I would expect my conditions as well to get updated along with the stock split numbers as below (assuming 1:10 split)

1. Order type as 'BUY'
2. Market Buy amount as $119.00
3. Limit Sell amount as $121.00
4. Stop loss as $118.50
5. For 50 shares

SDK Version I encountered this issue in

0.23.0

Steps To Reproduce

1. Place a bracket order for XX stock with order type as 'BUY' along with limit sell and stop loss
2. Wait for the stock to get split (either +ve or -ve)
3. The limit sell and stop loss amounts has to be updated along with the number of shares

Filled out the Steps to Reproduce section?

  • I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.

Anything else?

Tested in live market

@hiohiohio
Copy link
Contributor

@eric-stanley Thank you for the report.
Seems this issue is not in scope of alpaca-py.
Could you please contact to support? ref. https://alpaca.markets/support

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

2 participants