Closed dsun615 closed 3 weeks ago
Seems this is not a bug. There are some limitations of timing when we change status of orders. We need to communicate with external exchanges for status change of orders. Therefore, depending on time especially outside of market hours, this situation could happen.
Is there an existing issue for this?
Current Behavior
When I do a TradingClient.cancel_orders(), my order get stuck in pending_cancel status. It may take a few minutes for it to go away itself. Sometime this issue doesn't happen at all. I do notice sometime it can happen on the orders page https://app.alpaca.markets/orders where you check the box to select all and cancel. I have one now currently stuck in pending_status the whole day. Order id c6ba2784-f809-4946-a483-42def039d1e2 in my paper account. However, it may have successfully cancelled by the time you look at it.
Expected Behavior
I expect when you cancel, an order, or all orders that it will cancel and not get stuck.
SDK Version I encountered this issue in
alpaca-py: v0.13.6
Steps To Reproduce
Filled out the Steps to Reproduce section?
Anything else?