API Support Forum
OEC API > Order Execution > How to cancel an order (C#)
Author Topic: How to cancel an order (C#)
(2 messages, Page 1 of 1)
Moderators: VPfau
SSandra
Posts: 10
Joined: Apr 28, 2010


Posted: May 08, 2010 @ 01:21 PM             Msg. 1 of 2
Hello,

the following does NOT work:

int myorderID = 2010933900;
Order order = oecClient.Orders[myorderID];
oecClient.CancelOrder(order);

What is wrong here?
Sandra

Sandra Cestano
SSandra
Posts: 10
Joined: Apr 28, 2010


Posted: May 10, 2010 @ 08:21 AM             Msg. 2 of 2
Hi,
Sorry, but now it works.

Please cancel this thread!
Sandra

Sandra Cestano