I have created a stop limit order. The order is accepted. Using API V2, I try to replace the order with a new limit price, stop price and quantity:
api.replace_order(order_id, qty=qty, limit_price=limit_price, stop_price=stop_price)
The above code, sometimes works. But oftentimes I receive the below exception:
“unable to replace order, order is already replaced”
What’s the issue?