I have currently this code;
ctx.submitOrders(
ctx.createMarketOrder(Enums.OrderAction.SELL, qty),
ctx.createLimitOrder(Enums.OrderAction.BUY, Enums.TIF.GTC, qty, limitPrice),
ctx.createStopOrder(Enums.OrderAction.BUY, Enums.TIF.GTC, qty, stopPrice)
);
I would like to replace my stop order by a trailing stop order, but I can't find the method for this in the SDK documentation.
Any idea?
ctx.submitOrders(
ctx.createMarketOrder(Enums.OrderAction.SELL, qty),
ctx.createLimitOrder(Enums.OrderAction.BUY, Enums.TIF.GTC, qty, limitPrice),
ctx.createStopOrder(Enums.OrderAction.BUY, Enums.TIF.GTC, qty, stopPrice)
);
I would like to replace my stop order by a trailing stop order, but I can't find the method for this in the SDK documentation.
Any idea?