# Margin Trading

A limit order is an order with a specific buying or selling price. Unlike market orders, where transactions are executed instantly at the current market price, limit orders allow you to control it. So to place a limit order, you must set a minimum or maximum price at which you want to buy or sell an asset.

On TheTrade, the execution of a limit order occurs automatically, eliminating the need for users to monitor the market around the clock.

However, there is no guarantee that a placed limit order will be filled because the market price may never reach the preset value.

As a rule, a limit order can be placed for up to several months. Our features include several options for limit orders - Buy Limit and Take Profit.

Buy Limit is a type of limit order that is used for the pending purchase of an asset at a price below the current market price.

Take Profit is a type of limit order that is used in anticipation of selling an asset at a price higher than the current market price.

The order is executed when the market price enters the range of liquidity you provided. Your liquidity will be transferred from the zero asset to the first and back, depending on the type of limit order (for example, ETH(0)-DAI(1)). For this transaction, the user is charged ETH in advance for the execution of the order. It depends on the price of gas.


---

# 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://thetrade.gitbook.io/thetrade/features/margin-trading.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.
