# TP/SL Order

<figure><img src="https://content.gitbook.com/content/YQMiWMjQNj4QgmzaRycI/blobs/inO4siWPAFxoVKd49GVu/16.png" alt=""><figcaption></figcaption></figure>

#### Take-Profit Orders

Trigger market order when price reaches profit target. Used to lock in gains automatically.

**Parameters:**

* `instrument`: Trading pair
* `side`: Opposite of position direction
* `size`: Position size to close
* `triggerPrice`: Target price

#### Stop-Loss Orders

Trigger market order when price reaches stop level. Used to limit losses on existing positions.

**Parameters:**

* `instrument`: Trading pair
* `side`: Opposite of position direction
* `size`: Position size to close
* `triggerPrice`: Activation price

**Execution:** Off-chain operators monitor prices continuously. When trigger price reached, order converts to market order and executes onchain immediately.
