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
}
}