API Support Forum
OEC API > API Support > OCO Functionality
Author Topic: OCO Functionality
(2 messages, Page 1 of 1)
Moderators: VPfau
THarnett81
Posts: 78
Joined: Jan 13, 2011


Posted: Jun 09, 2011 @ 05:34 PM             Msg. 1 of 2
Please detail the OCO functionality available in the OEC API.

I've looked at the documentation and the OEC API Advanced Example. Just to be sure of what to expect, if one of my OCO orders is Filled, I will receive back a status of Cancelled on the other one? Also, can I string, say, 5 orders together and if one gets Filled, the others will be Cancelled? And, can I do more complex things, like a list of OCO's of OCO's? Like an array of arrays.

Thank you.
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 10, 2011 @ 10:19 AM             Msg. 2 of 2
In particular case, if one of your OCO orders will be filled, another will be cancelled. In more general case, if one order got a partial fill, quantity of other order will be reduced to amount of coming fill.

OEC supports only two orders.

Victor Vins
Lead Software Developer