# Order/modifyorder response successful, but order is not modified

**URL:** <https://community.tradovate.com/t/order-modifyorder-response-successful-but-order-is-not-modified/4464>\
**Category:** API Developers\
**Created:** [April 18, 2022, 7:28am UTC](https://community.tradovate.com/t/order-modifyorder-response-successful-but-order-is-not-modified/4464 "2022-04-18T07:28:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cat1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/cat1/32/1328_2.png) [@cat1](https://community.tradovate.com/u/cat1)\
**Post date:** [April 18, 2022, 7:28am UTC](https://community.tradovate.com/t/order-modifyorder-response-successful-but-order-is-not-modified/4464/1 "2022-04-18T07:28:04Z")

</div>

let url=‘order/modifyorder’  
let body={  
orderId: 3703634089,  
orderQty: 1, //required  
orderType: ORDER\_TYPE.Limit,//required  
price: 4359,  
isAutomated: true  
}  
let res = await tvSocAcc.send({url, body})  
console.log(JSON.stringify(body))  
console.log(JSON.stringify(res))

The console returns:

3:24:52:978:{  
“orderId”: 3703634089,  
“orderQty”: 1,  
“orderType”: “Limit”,  
“price”: 4359,  
“isAutomated”: true  
}  
3:24:53:40:{  
“s”: 200,  
“i”: 2,  
“d”: {  
“commandId”: 3703634115  
}  
}

But the limit order is still at the old price: 4358

While subscribed to user/syncrequest, the server even gives the New orderVersion Created event, twice, stating the updated price is in effect. But on the chart the order is still at the old price.

3:24:53:40:{  
“entityType”: “orderVersion”,  
“eventType”: “Created”,  
“entity”: {  
“id”: 3703634115,  
“orderId”: 3703634089,  
“orderQty”: 1,  
“orderType”: “Limit”,  
“price”: 4359  
}  
}  
3:24:53:408:{  
“entityType”: “orderVersion”,  
“eventType”: “Created”,  
“entity”: {  
“id”: 3703634118,  
“orderId”: 3703634089,  
“orderQty”: 1,  
“orderType”: “Limit”,  
“price”: 4359  
}  
}

---

<div class="post-metadata">

**Author:** ![cat1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/cat1/32/1328_2.png) [@cat1](https://community.tradovate.com/u/cat1)\
**Post date:** [April 18, 2022, 3:15pm UTC](https://community.tradovate.com/t/order-modifyorder-response-successful-but-order-is-not-modified/4464/2 "2022-04-18T15:15:54Z")

</div>

Solved.  
Chart order detail says: ‘execution rejected, cannot modify time-in-force’  
Turns out the default timeInForce is likely ‘Day’, and the existing is ‘GTC’  
Once added

timeInForce: ‘GTC’,

to body, it works
