Hi, Im have difficulties trying to place an order at a price that is say 10 ticks away from the current price in my c# application. It successfully places a back/lay but always seems to do it at the current price, not at the price ive passed in (MyPrice) which will be several ticks away.
Can anybody see anything wrong with the below. Im using a live app key.
Thanks
IList<PlaceInstruction> placeInstructions = new List<PlaceInstruction>();
var placeInstruction = new PlaceInstruction();
placeInstruction.Handicap = 0;
placeInstruction.Side = MySide;
placeInstruction.OrderType = OrderType.LIMIT;
var limitOrder = new LimitOrder();
limitOrder.PersistenceType = PersistenceType.LAPSE;
limitOrder.Price = (double)MyPrice;
limitOrder.Size = MySize;
placeInstruction.LimitOrder = limitOrder;
placeInstruction.SelectionId = Int32.Parse(Convert.ToString(SelectionID));
placeInstructions.Add(placeInstruction);
var placeExecutionReport = new PlaceExecutionReport();
placeExecutionReport = client.placeOrders(Marketid, null, placeInstructions);
Can anybody see anything wrong with the below. Im using a live app key.
Thanks
IList<PlaceInstruction> placeInstructions = new List<PlaceInstruction>();
var placeInstruction = new PlaceInstruction();
placeInstruction.Handicap = 0;
placeInstruction.Side = MySide;
placeInstruction.OrderType = OrderType.LIMIT;
var limitOrder = new LimitOrder();
limitOrder.PersistenceType = PersistenceType.LAPSE;
limitOrder.Price = (double)MyPrice;
limitOrder.Size = MySize;
placeInstruction.LimitOrder = limitOrder;
placeInstruction.SelectionId = Int32.Parse(Convert.ToString(SelectionID));
placeInstructions.Add(placeInstruction);
var placeExecutionReport = new PlaceExecutionReport();
placeExecutionReport = client.placeOrders(Marketid, null, placeInstructions);


Comment