Author |
Topic: One Cancel Other order was rejected (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
RAnde Posts: 20 Joined: Sep 05, 2017 |
Hello,
I submitted One Cancel Other order successfully by using method SendOCOOrders. But orders of the One Cancel Other order were rejected after that. And I received the following message on OEC Trader Developer application "Order was reject...(invalid order type)" My One Cancel Other order includes 2 two Buy order. One has order type of Market, the order has order type of Limit. Would you please explain why my order was rejected? Edited by RAnde on Nov 06, 2017 04:10 AM |
||||
CMicciche902 Posts: 367 Joined: |
The rejection is expected. You may not submit a Market and Limit order for OCO. A market order would expect immediate fill, therefore defeating purpose of OCO.
Chris M
|
||||
RAnde Posts: 20 Joined: Sep 05, 2017 |
Thanks Chris! I have one more question.
I have tried to submit OCO with 2 Buy orders, one for Limit and one for Stop. The current last price of symbol is 2589. I submitted with LimitPrice = 2591 and StopPrice = 2588. And these two orders were rejected with exception "Invalid price combination". Then I submitted successfully with LimitPrice = 2588 and StopPrice = 2591. The current last price of symbol is still 2589. It means that the price validation for Limit and Stop orders on your API is as following - For Limit order + If Order.Side is Buy, Limit Price must be less than the current last price of symbol + If Order.Side is Sell, Limit Price must be greater than the current last price of symbol - For Stop order + If Order.Side is Buy, Stop Price must be greater than the current last price of symbol + If Order.Side is Sell, Stop Price must be less than the current last price of symbol Is my understanding correct? Edited by RAnde on Nov 06, 2017 10:07 PM |
||||