Skip to content
Trade

TP / SL trigger orders

Trigger orders sit off-book and fire as reduce-only market orders when the oracle price crosses the trigger level. Stored per-market in an in-memory DashMap and checked on every oracle update — never on the order placement hot path.

PositionTypeTrigger Rule
Long positionTake ProfitFires when oracle ≥ trigger_px → submits Sell reduce-only
Long positionStop LossFires when oracle ≤ trigger_px → submits Sell reduce-only
Short positionTake ProfitFires when oracle ≤ trigger_px → submits Buy reduce-only
Short positionStop LossFires when oracle ≥ trigger_px → submits Buy reduce-only