> For the complete documentation index, see [llms.txt](https://docs.velio.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.velio.xyz/trading/order-types-and-tp-sl.md).

# Order Types & TP/SL

Market, limit and conditional orders, order options, and take profit / stop loss.

### Order types

| Order type  | How it works                                                                           | Fee                                                          |
| ----------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| Market      | Fills immediately at the best available price                                          | Taker                                                        |
| Limit       | Fills at your price or better. If it can't fill right away, it rests in the order book | Maker if it rests in the book; Taker if it fills immediately |
| Conditional | Sent as a market or limit order when the market reaches your trigger price             | Depends on the order it sends                                |

### Order options

* **Post Only:** the order only adds liquidity. If it would fill immediately, it's cancelled instead, so it always pays the maker fee.
* **Reduce Only:** the order can only reduce or close a position, never open or increase one.

### Conditional orders

A conditional order waits for a **trigger price**, based on the **Last Price** or the **Mark Price**, then sends a market or limit order. The trigger decides when the order is sent, not the price it fills at.

**Example:** you hold a 1 BTC long at 80,000 and want to exit if BTC falls to 78,000. Set the trigger price to 78,000, choose Sell and Market, and tick Reduce Only. When the price reaches 78,000, your position is closed at market.

### Take Profit / Stop Loss (TP/SL)

* Set TP/SL when you place an order, or add it to an open position.
* Set it by price or by PnL amount.
* Close the full position, or part of it.
* The stop-loss price can't be beyond your estimated liquidation price.

{% hint style="info" %}
**Last Price or Mark Price?** Liquidation is based on the mark price, so a stop loss triggered by the **Mark Price** is less likely to be overtaken by a liquidation. A take profit triggered by the **Last Price** tracks the price you actually trade at more closely.
{% endhint %}

### Closing a position

* **Market close:** exit immediately at market price.
* **Limit close:** exit at your target price.
* **TP/SL:** exit automatically when triggered.
* **Reverse:** close your position and open the opposite side in one step.

### Protections

* A **slippage warning** appears when a market order's estimated slippage is high.
* A **price reminder** appears when a limit price would fill immediately at a worse price than the market.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.velio.xyz/trading/order-types-and-tp-sl.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
