can i do the following
AtmStrategyCreate(OrderAction.SellShort, OrderType.Market,0, 0, TimeInForce.Gtc, orderId1, "OPENING GAMBIT", atmStrategyId, (atmCallbackErrorCode, atmCallBackId) => {
//check that the atm strategy create did not result in error, and that the requested atm strategy matches the id in callback
if (atmCallbackErrorCode == ErrorCode.NoError && atmCallBackId == atmStrategyId)
isAtmStrategyCreatedMarket = true;
});
AtmStrategyCreate(OrderAction.SellShort, OrderTypeLimit,Limitprice, 0, TimeInForce.Gtc, orderId2, "OPENING GAMBIT", atmStrategyId, (atmCallbackErrorCode, atmCallBackId) => {
//check that the atm strategy create did not result in error, and that the requested atm strategy matches the id in callback
if (atmCallbackErrorCode == ErrorCode.NoError && atmCallBackId == atmStrategyId)
isAtmStrategyCreatedLimit = true;
});

Comment