Attach to an entry or a position
You can also place a single stop or take-profit order on its own, with no sibling (grouping
NA).
When the entry only partly fills
Whether TP/SL attached to an entry become active depends on how the entry ends. Newly activated legs first become eligible to trigger in the next block.
In whole-position mode, the order uses the position size at trigger time. Adding to or reducing the position changes the size it will attempt to close. A replacement cannot switch between whole-position and fixed-size mode.
A reduce-only entry cannot carry TP/SL (
ReduceOnlyCannotHaveTPSL).
Settings
The 10% setting is measured from the best available quote when the triggered market order is processed: the best bid for a sell, or the best ask for a buy. It is not measured from your trigger price.
Market or limit
A limit TP/SL bounds the fill price but may not fill. For a long stop-loss with a trigger at $10, suppose the market falls from $11 to $9 before execution:
A lower sell limit accepts worse prices and may reach more bids. It does not guarantee a fill. These examples assume the order passes the applicable checks.
How the pair cancels
For aNormalTPSL or PositionTPSL pair, cancellation depends on the triggered leg’s execution result.
What happens
What happens to the other leg
A triggered leg fails or is cancelled with no fill
The other leg remains active
A triggered limit leg rests on the book, including after a partial fill
The other leg remains active
A triggered leg has filled and no longer rests on the book
The other leg is cancelled
The other leg triggers while the earlier leg still rests
The earlier leg’s resting remainder is cancelled first
A standalone order triggers
There is no sibling to cancel
NormalTPSL pair is cancelled with its entry if the entry never fills. A PositionTPSL pair is cancelled when its position closes, whether through your own order, liquidation, or deleveraging. Independent non-reduce-only conditions can remain active after a position closes.
When it triggers
Mark-price triggers use the mark fixed for the block. Last-price triggers use the previous block’s trade high and low. A trade in the current block becomes a last-price trigger input in the next block. Configured trigger protection can substitute mark price when a last-price input deviates too far from it. TP/SL newly activated by an entry first become eligible to trigger in the next block. See Transaction sequencing. At placement, applicable direction, price, size and open-order checks apply. Entry-linked TP/SL also have rules relative to the entry’s direction and reference price. Conditional limit prices have separate constraints relative to their trigger price and applicable execution-price limits. At trigger time, execution and margin checks apply again. Whole-position TP/SL resolve the current position size and execute as reduce-only orders. Fixed-size reduce-only orders are limited to the remaining close capacity. A fixed-size or standalone order without reduce-only can open or reverse a position. A triggered market order is immediate-or-cancel. It can close part of your position and cancel the unfilled quantity. The same condition is not automatically re-armed.Changing them
To change the trigger, price or size, replace the order (ReplaceCondition in the SDKs).
A successful replacement cancels the old order and creates the new one in one execution step. Failure can have different outcomes:
Check the final status of both the old and new orders before relying on the replacement for protection.