alpaca-trade-api-python
alpaca-trade-api-python copied to clipboard
[Bug]: Status pending_cancel does not exist
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
When you cancel an order in extended hours, sometime you see the status "pending_cancel"
Expected Behavior
According to the documentation here: https://alpaca.markets/docs/api-references/trading-api/orders/
We only have 3 status: Open, Closed, All
We need to add a new status "pending_cancel"
Why? This way you can check if the status is pending_cancel and avoid getting a error that breaks the program
SDK Version I encountered this issue in
alpaca-trade-api version: 2.3.0
Steps To Reproduce
1. Cancel an order during extended hours( For example at 19:00 hours )
Filled out the Steps to Reproduce section?
- [X] 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?
No response