> For the complete documentation index, see [llms.txt](https://docs.swoop.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swoop.fun/limit-orders/limit-buy.md).

# Limit Buy

**To open a limit buy order**, tap **«Buy/Sell»** and enter the token’s contract address — or simply paste the address anywhere in the bot.

<div align="left"><figure><img src="/files/oXEJWRwQjhfIduYNvY2C" alt="" width="375"><figcaption></figcaption></figure></div>

After entering the token address `(e.g. DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263)` you will see a short overview, as well as buttons for quick buy and sell, swap and **Limit buy.**

### Creating a Limit Buy Order

Tap **«Limit Buy»** and set your order parameters.

<div align="left"><figure><img src="/files/HOLBHvjN8gb0Zwj7dma2" alt="" width="225"><figcaption></figcaption></figure></div>

Tap **«Buy amount»** and enter the amount (in SOL).

<div align="left"><figure><img src="/files/4bjew7D3LzxmWaGiFtAI" alt="" width="375"><figcaption></figcaption></figure></div>

Tap **«Expiry»** and set the order’s duration (in hours).

<div align="left"><figure><img src="/files/TBbFEPohMmHEoGf1x1IR" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
You can set a limit buy based on either **price** or **market cap**:
{% endhint %}

<div align="left"><figure><img src="/files/2ixpQnfLtZcHxI3yDgZN" alt="" width="375"><figcaption></figcaption></figure></div>

### Setting a limit order to buy a token at a price.

1. Tap **«Price»** button to place a limit buy order at the price.
2. Specify the percentage change from current prices at which the order is triggered.

<div align="left"><figure><img src="/files/Us2JtP2GcRtFuZ01yTva" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Negative value = Buy below current price

Positive value - Above the current price
{% endhint %}

### Setting a limit order to buy a token at a Market Cap

1. Tap **«Market Cap»** button to place a limit buy order at the market Cap.
2. Specify the desired market cap at which the order is triggered

<div align="left"><figure><img src="/files/bNPIClRi0u35e0znZcuZ" alt="" width="375"><figcaption></figcaption></figure></div>

Tap **«Slippage»** to set the slippage value (%).

<div align="left"><figure><img src="/files/i4nZcjBXpU85hvvtOpBk" alt="" width="375"><figcaption></figcaption></figure></div>

Tap **«Create limit order»** to create a limit buy.

<div align="left"><figure><img src="/files/dE9UAVSy9E5wIMEph16P" alt="" width="375"><figcaption></figcaption></figure></div>

Once the buying is complete, you'll see the window with the transaction information.

<div align="left"><figure><img src="/files/kINILXCyjvb81OmjmIN6" alt="" width="262"><figcaption></figcaption></figure></div>

{% hint style="info" %}
You can view and edit your active limit orders anytime under [**Active Orders**.](/limit-orders/active-orders.md)
{% endhint %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.swoop.fun/limit-orders/limit-buy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
