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.
| Position | Type | Trigger Rule |
|---|---|---|
| Long position | Take Profit | Fires when oracle ≥ trigger_px → submits Sell reduce-only |
| Long position | Stop Loss | Fires when oracle ≤ trigger_px → submits Sell reduce-only |
| Short position | Take Profit | Fires when oracle ≤ trigger_px → submits Buy reduce-only |
| Short position | Stop Loss | Fires when oracle ≥ trigger_px → submits Buy reduce-only |