API Support Forum
OEC API > Advanced Order Management > Orders getting rejected
Author Topic: Orders getting rejected
(11 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jan 07, 2010 @ 04:59 PM             Msg. 1 of 11
We are getting some rejected orders on mini gold with a reason of “Invalid order restrictions”, but we can’t figure out exactly why this may be happening – When talking with tech support they say that it shows order of MKT GTC which looks to be the reason, but I know that the order is just a market order with no flag (ie. FOK, IOC, GTC, etc..) associated with MKT orders. I am using the SendLinkedOrders_3() function. The first order draft is the market order with no flag. the second and third order dratfs are a stop order and limit order both of them are have the flag GTC. could you look into the reason for the rejected orders?

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 07, 2010 @ 05:10 PM             Msg. 2 of 11
Could you please specify order number(s)?
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jan 07, 2010 @ 06:53 PM             Msg. 3 of 11
on account # E11882 order numbers 24571954 & 24572005

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 08, 2010 @ 10:05 AM             Msg. 4 of 11
According our logs these orders were entered to the system with GTC flag.
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jan 08, 2010 @ 04:52 PM             Msg. 5 of 11
I would like to do a simple test if I could.

I will place two trades first on will be a market order places with the Function SendOrder_2(); The second order will be with the Function SendLinkedOrders_3() the second order will have with it a stop and limit both of which will be GTC. I would like to know what you are seeing on you end with these two orders.

AccountID - DEMO041673
Order #1 - 39855227
Order #2 - 39855260

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 19, 2010 @ 08:26 AM             Msg. 6 of 11
I will research that and get back to you ASAP.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 19, 2010 @ 08:29 AM             Msg. 7 of 11
both these orders do not have GTC flag.
Linked (bracket) orders of the second orders have GTC flag.
Is it what you expected?
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jan 20, 2010 @ 01:30 PM             Msg. 8 of 11
This is exactly what I expected from the placement of these orders. Great. The way those two orders where sent is how TNT software is sending all of its orders. So, I don't know how the above orders in Msg. 3 would have been GTC. Can you do some more digging in to the orders that are coming from our software (market orders) and see why they are getting tagged as GTC? Because I am not flagging them as such. Thanks.

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 21, 2010 @ 04:49 PM             Msg. 9 of 11
I have double checked - order 24571954 was received by our server with GTC flag already set by client. Neither OEC API nor server made any changes to the flag value.
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jan 22, 2010 @ 05:03 PM             Msg. 10 of 11
Thanks. It feels like we are going in a circle here. I am sure that every order that is a market order sent from our application has the flag 'None', but you are telling me that isn't the case. What else can I do to test this and find the problem? I can't reproduce the problem with my simulation account. maybe this problem is because it is on a real account. What do you think?

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 27, 2010 @ 09:04 AM             Msg. 11 of 11
Do you have this problem with each live order, or with only few?
Could you please leave simulation test running for a longer period?