Before calling ModifyOrder() . make sure that new openPrice/stopLoss/takeProfit you want to change is at least one point different from previous price. something like this : //==================================== double newStopLoss; double ...