# Limit Orders

## Introduction to Limit Orders

Limit orders allow you set a predetermined price at which you want to buy or sell a token. The order will only be executed once the market reaches your chosen price, giving you greater control over your trades. It’s especially useful for targeting specific price points without the need to watch the market&#x20;

### How to set up a Limit Order on Blackhole

1. Go the swap page and select the "Limit" option.

<figure><img src="/files/3FfBH1qattITjdXulxjo" alt=""><figcaption></figcaption></figure>

2. Select the tokens you want to swap and to receive.

<figure><img src="/files/W1NvX174pRz5nq5uacoS" alt=""><figcaption></figcaption></figure>

3. Select this switch to toggle between buy and sell for this limit order:

<figure><img src="/files/PTaRVntNlrqX0A517nHA" alt=""><figcaption></figcaption></figure>

4. Enter your desired limit price

<figure><img src="/files/aObdp5gThuiKCWkYEYCD" alt=""><figcaption></figcaption></figure>

5. Set the Expiration time:

<figure><img src="/files/VYgwcioBNPCgvweyi6Iy" alt=""><figcaption></figcaption></figure>

You can set this in minutes, hours or days.

{% hint style="warning" %}
Limit orders may not execute when the token's price is equal or close to the limit price, due to gas and standard swap fees.
{% endhint %}

6. Before you can execute this limit order, you need to give approval to Blackhole for the token you would like to swap in this limit order:

<figure><img src="/files/ESJD855pN0h2qACIh7R4" alt=""><figcaption></figcaption></figure>

7. After the approval transaction has completed successfully, the button appears to place the limit order:

<figure><img src="/files/zhE4l4C4S1T2RHXXv2W7" alt=""><figcaption></figcaption></figure>

8. After succesfull placement of the limit order, this will show up in the Open Orders:

<figure><img src="/files/I58EEFV66VApqu4hswWg" alt=""><figcaption></figcaption></figure>

9. click on it to get more details about this limit order:

<figure><img src="/files/uvH4V8BoU1GaOrqU9WrC" alt=""><figcaption></figcaption></figure>

10. If you no longer want to keep this limit order open, you can cancel this from the limit order details window:

<figure><img src="/files/FwOi2e4a406J9YNLi86H" alt=""><figcaption></figcaption></figure>


---

# 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.blackhole.xyz/protocol-design/how-to-swap/limit-orders.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.
