Adjusted to Stop

View as MarkdownOpen in Claude

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.

1order = Order()
2order.orderType = "TRAIL"
3order.trailStopPrice = 100
4order.auxPrice = 3
5
6order.triggerPrice = triggerPrice
7order.adjustedOrderType = "STP"
8order.adjustedStopPrice = adjustStopPrice