Create a trailing-stop order.
The order action (buy or sell)
The number of positions being bought/sold.
Optional
auxPrice: numberGeneric field to contain the stop price for STP LMT orders, trailing amount, etc.
Optional
trailingPercent: numberSpecifies the trailing amount of a trailing stop order as a percentage. This field is mutually exclusive with the existing trailing amount. That is, the API client can send one or the other but not both. This field is read AFTER the stop price (barrier price) as follows: deltaNeutralAuxPrice stopPrice, trailingPercent, scale order attributes. The field will also be sent to the API in the openOrder message if the API client version is >= 56. It is sent after the stopPrice field as follows: stopPrice, trailingPct, basisPoint
Optional
transmit: booleanSpecifies whether the order will be transmitted by TWS. If set to false`, the order will be created at TWS but will not be sent.
Optional
parentId: numberThe order ID of the parent order, used for bracket and auto trailing stop orders..
Optional
tif: TimeInForceThe time in force. Valid values are:
The order action (buy or sell)
Optional
auxGeneric field to contain the stop price for STP LMT orders, trailing amount, etc.
Readonly
orderThe order's type (must be [[OrderType.TRAIL]]).
Optional
parentThe order ID of the parent order, used for bracket and auto trailing stop orders..
Optional
tifThe time in force. Valid values are:
The number of positions being bought/sold.
Optional
trailingSpecifies the trailing amount of a trailing stop order as a percentage. This field is mutually exclusive with the existing trailing amount. That is, the API client can send one or the other but not both. This field is read AFTER the stop price (barrier price) as follows: deltaNeutralAuxPrice stopPrice, trailingPercent, scale order attributes. The field will also be sent to the API in the openOrder message if the API client version is >= 56. It is sent after the stopPrice field as follows: stopPrice, trailingPct, basisPoint
Optional
transmitSpecifies whether the order will be transmitted by TWS. If set to false`, the order will be created at TWS but will not be sent.
Generated using TypeDoc
Represents a trailing-stop order.