API Support Forum
OEC API > Order Execution > OCO and OSO orders via OEC API
Author Topic: OCO and OSO orders via OEC API
(2 messages, Page 1 of 1)
Moderators: VPfau
JPaganini258
Posts: 16
Joined: Oct 28, 2011


Posted: Nov 08, 2011 @ 11:57 AM             Msg. 1 of 2
How can I send OCO and OSO orders via OEC api?

Jônatas Paganini
RuslanK
Posts: 69
Joined: Jun 02, 2010


Posted: Nov 08, 2011 @ 12:05 PM             Msg. 2 of 2
Please see OEC API Advanced Example.
There is a method btSendOCO_Click( object sender, EventArgs e ) in OrdersControls class, which contains sample code for sending OCO orders.

Regarding OSO - you should use OECClient.SendLinkedOrders(OrderDraft main, params OrderDraft[] linked) method.

Ruslan Kartokhin
Software Developer