How to create a trailing stop order?

Aionda

Member
Joined
Dec 26, 2022
Posts
17
Likes
1
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?
 
Top