I am currently placing bets and lays successfully programmatically in C# using the API-NG code and a delayed key.
However, I want to place bets at BSP (market on close).
Each time I try I get an exception thrown by the API but the 'data' element of the exception is null, so there is no meaningful help in the exception.
I have tried to create the request exactly as indicated in the documentation:
placeInstruction.OrderType = OrderType.MARKET_ON_CLOSE;
var marketOnCloseOrder = new MarketOnCloseOrder();
marketOnCloseOrder.Size = 10.0;
placeInstruction.MarketOnCloseOrder = marketOnCloseOrder;
placeInstruction.SelectionId = selectionId;
placeInstructions.Add(placeInstruction);
var customerRef = "123456";
var placeExecutionReport = BFManager.client.placeOrders(marketId, customerRef, placeInstructions);
Does anyone have any idea what I'm missing here?
I was wondering if the BSP markets are not available with the delayed key key but I can't find anything stating that in the documentation.
Cheers..
However, I want to place bets at BSP (market on close).
Each time I try I get an exception thrown by the API but the 'data' element of the exception is null, so there is no meaningful help in the exception.
I have tried to create the request exactly as indicated in the documentation:
placeInstruction.OrderType = OrderType.MARKET_ON_CLOSE;
var marketOnCloseOrder = new MarketOnCloseOrder();
marketOnCloseOrder.Size = 10.0;
placeInstruction.MarketOnCloseOrder = marketOnCloseOrder;
placeInstruction.SelectionId = selectionId;
placeInstructions.Add(placeInstruction);
var customerRef = "123456";
var placeExecutionReport = BFManager.client.placeOrders(marketId, customerRef, placeInstructions);
Does anyone have any idea what I'm missing here?
I was wondering if the BSP markets are not available with the delayed key key but I can't find anything stating that in the documentation.
Cheers..


Comment