API Support Forum
OEC API > API Support > OCO Orders
Author Topic: OCO Orders
(4 messages, Page 1 of 1)
Moderators: VPfau
JPaganini258
Posts: 16
Joined: Oct 28, 2011


Posted: Feb 13, 2012 @ 12:55 PM             Msg. 1 of 4
Hi, I'm trying to submit a stoploss/take profit orders using oco orders,after my limit order was confirmed.

But the order was rejected - sending "invalid combination prices" error.

I really doesn't understand why?


I'm confirmed in a buy at 6sh2 -> trying to send

stop loss:
sell limit at current price less some points

take profit
sell limit at current price plus some points


I'm trying to send two drafts using OCO method.

why the error?

thanks

Jônatas Paganini
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Feb 13, 2012 @ 05:06 PM             Msg. 2 of 4
Could you please specify order id?

Victor Vins
Lead Software Developer
JPaganini258
Posts: 16
Joined: Oct 28, 2011


Posted: Feb 13, 2012 @ 07:08 PM             Msg. 3 of 4
22:06:35.223 : State of Order #202232746 (Sell 2 6SH2 LMT 762.6) changed from Sent to Rejected
22:06:35.215 : State of Order #202232745 (Sell 2 6SH2 STP 1109.1) changed from Sent to Rejected

Jônatas Paganini
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Feb 13, 2012 @ 09:06 PM             Msg. 4 of 4
Price of Sell Stop (stop loss) should be less than price of Sell Limit (take profit)

Victor Vins
Lead Software Developer