# Exit Conditions

<figure><img src="/files/4dDHIhJJneOKNoGypVAn" alt=""><figcaption></figcaption></figure>

### Overview

Exit Conditions allow you to automatically create **Take Profit** and **Stop Loss** orders that will execute when your main order is filled. These are separate orders that are created alongside your primary order and will only activate once your main order has been completed.

### Basic Mechanics

1. **Parent Order Completion:** Exit condition orders only become active after your main (parent) order has been fully filled
2. **Child Order Creation:** When you place an order with exit conditions, the system creates separate Take Profit and/or Stop Loss orders
3. **Mutual Exclusion:** If one exit condition order executes, the other is automatically cancelled
4. **Batch Grouping:** All related orders (main order + exit conditions) are grouped together for easy management

### Order Types

**Take Profit Orders**

* **Purpose:** Automatically sell your position when the price moves favorably
* **For Buy Orders:** Triggers a sell order when price reaches or exceeds your target price
* **For Sell Orders:** Triggers a buy order when price drops to or below your target price

**Stop Loss Orders**

* **Purpose:** Automatically limit your losses when the price moves against you
* **For Buy Orders:** Triggers a sell order when price drops to or below your stop price
* **For Sell Orders:** Triggers a buy order when price rises to or exceeds your stop price

### Exit Strategy Types

You can choose from three different execution strategies for your exit conditions:

#### 1. Maker

* **Best for:** When you want to limit your exposure to taker fees
* **Execution:** Places limit orders at or near the current market price
* **Duration:** Uses the same duration as your parent order
* **Risk:** May not fill if price moves away quickly

#### 2. VWAP (Volume Weighted Average Price)

* **Best for:** Large orders where you want to minimize market impact
* **Execution:** Executes over time to achieve the volume-weighted average price
* **Duration:** Uses the same duration as your parent order
* **Risk:** Moderate execution risk, good balance of price and timing

#### 3. Taker

* **Best for:** When you need fast or immediate execution
* **Execution:** Uses market orders for instant fills
* **Risk:** Higher execution cost but guaranteed fills

### Price Validation Rules

#### Take Profit Prices

* For Buy Orders: Must be greater than or equal to current market price
* For Sell Orders: Must be between 0 and current market price

#### Stop Loss Prices

* For Buy Orders: Must be between 0 and current market price
* For Sell Orders: Must be greater than or equal to current market price

### Important Considerations

#### Order Dependencies

* Exit condition orders will not execute until your main order is fully filled
* If your main order is cancelled, all exit condition orders are automatically cancelled
* Only one exit condition can execute - if Take Profit triggers, Stop Loss is cancelled and vice versa

#### Risk Management

* No Guarantees: Market conditions can change rapidly, and exit orders may not execute at your exact target price
* Slippage: In volatile markets, actual execution prices may differ from your target prices
* Gap Risk: In extreme market conditions, prices may gap beyond your stop loss levels


---

# 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.tread.fi/creating-and-submitting-orders/exit-conditions.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.
