alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
141 stars 13 forks source link

Orders get stuck in pendingCancel state. #199

Open sankarr opened 2 years ago

sankarr commented 2 years ago

Describe the bug Orders get stuck in PendingCancel State, and there does not be a way to clear the orders

To Reproduce Create a random buy or sell limit order for a single stock and do it once every 1 minute. Try to patch that order for a new price within that minute until it gets executed. Keep doing it for a whole day and you will probably be able to reproduce your issue

Expected behavior Orders shouldn't get stuck in the PendingOrder state.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

gajsanders commented 2 years ago

Hi @sankarr, do you have any sample orders you share with support@alpaca.markets - we can look into this further for you

sankarr commented 2 years ago

@gajsanders I send you the order ids. As well a screen shot to email address.