I'm writing an addon which needs to be able to update orders on occasion.
I believed that the following code would be sufficient:
var account = GetMyAccount();
var order = GetMyOrder();
order.Quantity = newOrderQuantity;
if (order.Quantity == 0)
{
account.Cancel(new Order[] { order });
}
else
{
account.Change(new Order[] { order });
}
Unfortunately this doesn't seem to be working. It runs through without an error, but the order quantity is not updated,
Is there anything else I should be doing?
Thanks!
Nich
Comment