Send order failed: Orders My Not Be Placed

ORDER hOrder = new ORDER();
Object err = null;
Object result;

hOrder.Side = "Buy";
hOrder.Symbol = "A";
hOrder.Quantity = "1";
hOrder.PriceType = "Market";
hOrder.Exchange = "DEMO DMA";
hOrder.TIF = "Day";
hOrder.Price = "88.00";
hOrder.Ticket = "Bypass";
hOrder.Account = "DEMO";

result = hOrder.Submit(ref err);

System.Console.WriteLine(result + " " + err);
Console.ReadLine();

Using this c# code to try to place an order. I thought it should be relatively straightforward, but I'm getting an error saying "Send order failed: Orders My Not Be Placed"

Tagged:

Best Answer

  • Hello @brian.p.coburn1,

    We have just confirmed that Prophecy has a risk rule in place to block all orders. You will need to work with Prophecy to get the rule modified/changed.

Answers