# TP/SL Order

<figure><img src="/files/Vmz8cS8oHJ257vqXz92K" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.drake.exchange/trading/order-types/tp-sl-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
