Stop orders seemingly can't have their stop price updated. Trying to issue a ReplaceOrderRequest with a new stop limit will throw an error
Expected Behavior
The stop order should be updated to use the new price as specified in the request.
SDK Version I encountered this issue in
Package Version
alpaca-py 0.13.3
Steps To Reproduce
Repro:
Create a stop order (I used a sell side stop order for an equity I owned, in paper)
Copy the ID of that order, put it in order_id_copied_from_web_interface
In python, set up a trading client and issue a ReplaceOrderRequest like so:
order = trading_client.replace_order_by_id(order_id=order_id_copied_from_web_interface,
order_data=ReplaceOrderRequest(
stop_loss=53.2 # of course use some value that makes sense in your case
))
When you execute that request, you'll get the following error:
alpaca.common.exceptions.APIError: {"code":42210000,"message":"order parameters are not changed"}
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.
Is there an existing issue for this?
Current Behavior
Stop orders seemingly can't have their stop price updated. Trying to issue a ReplaceOrderRequest with a new stop limit will throw an error
Expected Behavior
The stop order should be updated to use the new price as specified in the request.
SDK Version I encountered this issue in
Package Version
alpaca-py 0.13.3
Steps To Reproduce
Repro:
order_id_copied_from_web_interface
When you execute that request, you'll get the following error:
Filled out the Steps to Reproduce section?
Anything else?
No response