API Support Forum
OEC API > API Support > STOP orders rejected, no reason given (test server)
Author Topic: STOP orders rejected, no reason given (test server)
(6 messages, Page 1 of 1)
Moderators: VPfau
THarnett81
Posts: 78
Joined: Jan 13, 2011


Posted: Jun 08, 2011 @ 04:33 PM             Msg. 1 of 6
I'm submitting STOP orders for ESM1 on api.openecry.com server.

My orders are being rejected. The "Comments" property of the Order rejection is blank. I believe this field should have the order rejection reason in it, right?

Can you please help me figure out why my Orders are being rejected?
THarnett81
Posts: 78
Joined: Jan 13, 2011


Posted: Jun 08, 2011 @ 05:01 PM             Msg. 2 of 6
Through email, I've been told that the market for ESM1 is closed, and that is why it was rejected.

That's all well and great, but what I REALLY need to know is: how do I get that rejection reason info? If it's not in the Comments property, where is it?
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 08, 2011 @ 05:36 PM             Msg. 3 of 6
Hello, you can get the reason in Order.States.Current.Comments

Victor Vins
Software Developer
THarnett81
Posts: 78
Joined: Jan 13, 2011


Posted: Jun 09, 2011 @ 12:12 AM             Msg. 4 of 6
Thanks.

What is Order.Comments for?

(I think the API docs could use some improvement in that respect. It's not clear.)
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 09, 2011 @ 08:22 AM             Msg. 5 of 6
Orders.Comments can be used by client application. For example, you can place a kind of "client order id", strategy name or originator of order. Please see http://www.openecry.com/api/api/OEC.API.OrderDraft.Comments.html

Victor Vins
Software Developer
THarnett81
Posts: 78
Joined: Jan 13, 2011


Posted: Jun 09, 2011 @ 10:25 AM             Msg. 6 of 6
"Order comments - usually specified a way order was entered"

With all due respect, that's a strangely worded and not terribly clear description. Your post is much clearer, though, so thanks.