Skip to navigation

Adjustable Stops

View as Markdown

You can attach one-time adjustments to stop, stop limit, trailing stop and trailing stop limit orders. When you attach an adjusted order, you set a trigger price that triggers a modification of the original (or parent) order, instead of triggering order transmission.

You can adjust any of the parent stop order types to any other stop order type; for example if you set up a Stop Limit, you can attach the one-time adjustment to change the order to a Trailing Stop, or if you start with a Stop order the adjustment can change it to a Trailing Stop Limit order.

Adjusted to Stop

TriggerPrice: Price threshold for when the order type should just to the AdjustedOrderType value.

AdjustedOrderType: Resulting order type in the event an order passes the triggerPrice threshold.
This can be “STP”, “STP LMT”, “TRAIL”, “TRAILING LIMIT”

AdjustedStopPrice: The stop order’s trigger price after being adjusted.

order = Order()
order.orderType = "TRAIL"
order.trailStopPrice = 100
order.auxPrice = 3
order.triggerPrice = triggerPrice
order.adjustedOrderType = "STP"
order.adjustedStopPrice = adjustStopPrice

Adjusted to Stop Limit

TriggerPrice: Price threshold for when the order type should just to the AdjustedOrderType value.

AdjustedOrderType: Resulting order type in the event an order passes the triggerPrice threshold.
This can be “STP”, “STP LMT”, “TRAIL”, “TRAILING LIMIT”

AdjustedStopPrice: The stop order’s trigger price after being adjusted.

AdjustedStopLimitPrice: The stop order’s limit price for execution after being adjusted.

order = Order()
order.orderType = "TRAIL"
order.trailStopPrice = 100
order.auxPrice = 3
order.triggerPrice = triggerPrice
order.adjustedOrderType = "STP LMT"
order.adjustedStopPrice = adjustStopPrice
order.adjustedStopLimitPrice = adjustedStopLimitPrice

Adjusted to Trail

TriggerPrice: Price threshold for when the order type should just to the AdjustedOrderType value.

AdjustedOrderType: Resulting order type in the event an order passes the triggerPrice threshold.
This can be “STP”, “STP LMT”, “TRAIL”, “TRAILING LIMIT”.

AdjustedStopPrice: The trail order’s trigger price after being adjusted.

AdjustableTrailingUnit: Dictate how trail should be adjusted.
This can be “amt” or ”%”.

AdjustedTrailingAmount: The value to trail by. This will be a set amount or percentage based on the AdjustedTrailingUnit.

order = Order()
order.action = action
order.orderType = "STP"
order.auxPrice = stopPrice
order.totalQuantity = quantity
order.triggerPrice = triggerPrice
order.adjustedOrderType = "TRAIL"
order.adjustedStopPrice = adjustedStopPrice
order.adjustableTrailingUnit = trailUnit
order.adjustedTrailingAmount = adjustedTrailAmount

Adjusted to Trail Limit

TriggerPrice: Price threshold for when the order type should just to the AdjustedOrderType value.

AdjustedOrderType: Resulting order type in the event an order passes the triggerPrice threshold.
This can be “STP”, “STP LMT”, “TRAIL”, “TRAILING LIMIT”.

AdjustedStopPrice: The trail order’s trigger price after being adjusted.

AdjustedStopLimitPrice: The trailing order’s limit price for execution after being adjusted.

AdjustableTrailingUnit: Dictate how trail should be adjusted.
This can be “amt” or ”%”.

AdjustedTrailingAmount: The value to trail by. This will be a set amount or percentage based on the AdjustedTrailingUnit.

order = Order()
order.action = action
order.orderType = "STP"
order.auxPrice = stopPrice
order.totalQuantity = quantity
order.triggerPrice = triggerPrice
order.adjustedOrderType = "TRAIL LIMIT"
order.adjustedStopPrice = adjustedStopPrice
order.adjustedStopLimitPrice = adjustedStopLimitPrice
order.adjustableTrailingUnit = trailUnit
order.adjustedTrailingAmount = adjustedTrailAmount