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 |
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 |
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 |
Hello, you can get the reason in Order.States.Current.Comments
Victor Vins Software Developer |
||||
THarnett81 Posts: 78 Joined: Jan 13, 2011 |
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 |
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 |
"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. |
||||