---
description: Set up a Limit Order by TonTradingBot
---

# Limit order

The Limit Orders feature in TonTradingBot allows users to set buy or sell orders at specified prices. Here’s a detailed guide on how to use this feature:

### Creating a Limit Order:

1. **Set up an Order:**
   * **Paste Contract:** If you know the contract address, you can paste it into the bot.
   * **Fast Swap:** Displays a list of recently traded tokens for quick selection.
   * **Balance:** Select a wallet to display its token list, then choose the token you want to set a limit order for.

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FEhRgM5V9AWbsPvJbyIET%2FGroup%201000002874.png?alt=media&#x26;token=d1d9fffb-dc08-4e53-a042-a7201f21709c" alt=""><figcaption></figcaption></figure>

2. **Select Mode:**

* Choose `Add Limit Order` to set up an order
* Choose either **BUY** or **SELL**.

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2Fc6nIXzUx1TPDsnpGb4Sp%2FGroup%201000002875.png?alt=media&#x26;token=78daa72a-f0f1-4353-a347-677ff0f1eecf" alt=""><figcaption></figcaption></figure>

3. **No Need to Select DEX:**

* The bot automatically checks both DEXs and chooses the one offering the best rate for your transaction.

4. **Select Wallets:**

* You can choose one or multiple wallets.

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FdaFgrebxLAjoVTYyGlFE%2FGroup%201000002876.png?alt=media&#x26;token=c70ac33c-2e69-43eb-8b60-8c39e72d6d0f" alt=""><figcaption></figcaption></figure>

5. **Choose Amount of TON you want to Buy or Percent of tokens you want to Sell:**

* Set up the price you want to Buy. You can choose the button or enter your desired price.&#x20;

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FLMyzZyGMAhviIaqaHOdu%2FGroup%201000002877.png?alt=media&#x26;token=f3df05eb-68a4-46cc-9972-a28e32d55d49" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FrrrmuF6XLH4jzlrcqnv7%2FGroup%201000002878.png?alt=media&#x26;token=40a04073-9f5f-45c3-bbad-88c592b7cd86" alt=""><figcaption></figcaption></figure>

* Choose the Amount of TON you want to buy.

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FbRC4isaYhH0OgRFDgMZF%2FGroup%201000002879.png?alt=media&#x26;token=b64fa4ff-5876-46b1-8334-318a8465b93b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FPVjg9f44rKzJp8Eb8w2l%2FGroup%201000002880.png?alt=media&#x26;token=be3aa745-f084-4760-b520-0aa4c63c35bc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
* **Selling:** Set a price higher than the current price to avoid immediate execution at market price.
* **Buying:** Set a price lower than the current price to avoid immediate execution at market price.
* **Minimum Transaction:** 0.5 TON.
* **Sufficient Balance:** Wallet must have sufficient funds to create a limit order.
{% endhint %}

* After that, choose to Create the Order and Confirm it.&#x20;

### Viewing Limit Orders:

Choose `/start` and click on `Limit Orders` button.

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FHHBpOoJbeBxR3hfyZmwj%2FGroup%201000002881.png?alt=media&#x26;token=db5b85fe-8092-49a1-b3ab-da939969dc9f" alt=""><figcaption></figcaption></figure>

* Displays a list of all limit orders for the current contract.
* Click on an order to see detailed information (wallet, price, quantity) and cancel it if needed.

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2Fmstlv8eNvrg8RQbTRuRx%2FGroup%201000002882.png?alt=media&#x26;token=0123d984-d24c-4b1c-9a9a-15f5d0a1e34d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1217510144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO7EGzmgnn2LsrChzfIHP%2Fuploads%2FPE2dHwykK0IiWXi3393F%2FGroup%201000002883.png?alt=media&#x26;token=51272db9-5930-4b98-bb5f-a424641e6816" alt=""><figcaption></figcaption></figure>

* Click **Back** to return to the swap panel.

### Additional Features:

* **Order Execution Notification:** You will receive a notification when a limit order is executed, similar to buy/sell notifications.
* **Order Removal:** Completed orders will be removed from the limit order list.
* **Order Cancellation:** Orders can be automatically canceled if the bot detects insufficient wallet balance, and you will be notified of the cancellation.

By following these detailed steps, users can effectively manage their trading strategies with the Limit Orders feature in TonTradingBot, ensuring they buy and sell at their desired prices.
