Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Can you edit an existing limit order?

Hi All,

Let's say I buy a stock using a limit order:

order(stock, buy_amt, style=LimitOrder(price))  

Later I can access this order with:

orders = get_open_orders(context, stock)  
order_ = orders[0]  

My question is, how can I edit the limit price, or volume on this order?

Seems unlikely, but would changing the limit property have any effect (since I do not see any methods relating to editing the order):

order_.limit = 100  

Or do I have to cancel it and then reorder at a new price or quantity?

4 responses

cancel and reorder. this is how brokers implement the change. in fact, they cancel, wait for the confirmation, then make a new order.

To be clear, exchanges do offer atomic order replacement messages which updates existing orders' price/size/whatever.

that was wrong of me to state without looking it up. i think i was in auto pilot on my cell phone, going off of my existing assumptions.

i would think orders that go out to multiple exchanges are not able to be atomic.

either way, i do not think there is a way to edit an order. i have not seen a version of the robinhood api that supports changing orders either.

also in my Schwab account when it changes an order it cancels the old one and makes a new one with a new order number. I think that is why i thought what I did.