Implementing trail stop through IB Controller


#1

I am trying to place a "TRAIL" order through the placeorder() function of IB Controller. On TWS the inputs accepted are trail type i.e. value or % and the corresponding number. However I cant figure which parameters of the placeorder() function will accept these values.


#2

Since "TRAIL" order requires setting both trailingPercent and trailStopPrice
https://interactivebrokers.github.io/tws-api/basic_orders.html#trailingstop
such order can't be sent currently as these fields are not accessible via PlaceOrder call