API Support Forum
OEC API > Order Execution > If Then OCO
Author Topic: If Then OCO
(2 messages, Page 1 of 1)
Moderators: VPfau
RRicky25
Posts: 1
Joined: Sep 17, 2010


Posted: Sep 17, 2010 @ 07:44 PM             Msg. 1 of 2
I have a strat that tells me when to get into a trade. It basically says Buy/Sell this pair at this rate, and here is your stop loss and limit to put in. On another platform this would be an IF Then OCO. Am I able to do that with this API and if so could someone point me in the right direction?


Also, I got an email saying I have an API id/pw, but is there some desktop program I can use for a test server? I'd like to visually see my API inputs with a trading platform that you guys have built. Is that possible?

Ricky Piller
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Sep 20, 2010 @ 09:26 AM             Msg. 2 of 2
Hello,

in OECAPI you can send If Then OCO via method SendLinkedOrders. This method has two parameters: main and linked orders. The second parameter takes variable number of arguments. So, SendLinkedOrders(main, linked) is "If Then Anoter", but SendLinkedOrders(main, oco1, oco2) is "If Then OCO"

You can use OEC Trader Developer that can work side-by-side with your application. Please contact Customer Service, they will help you to install this application.

Victor Vins
Software Developer