You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @albertsalgueda sorry for the delay on this one; does this only happen when using the python SDK? We simply make a DELETE call to the endpoint, so I think this might've been a bug with the API itself.
@albertsalgueda
I think the problem is that you are trying to cancel the orders on extended hours.
If you go to the web interface, you will see the status pending_cancel
Right?
if that is the case, here is the explanation from Alpaca
The primary reason one sees pending cancel orders is when an order is cancelled during non-market hours. Alpaca forwards the request to the execution partner who has the order, but many of these partners only accept orders and cancelations during market hours or at most limited hours. Orders cancelled after market hours therefore often remain in a pending cancel state until the following market open.
Is there an existing issue for this?
Current Behavior
When I call
api.cancel_all_orders()
I check my account from the UI and open orders remain open.
Expected Behavior
All orders should be closed.
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: