> 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). Agents can also search and read this documentation through its [MCP server](https://docs.swoop.fun/~gitbook/mcp).

# 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="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FnoqVnkAhYoefuR778HXR%2Fimage.png?alt=media&amp;token=994a4ea7-7480-4761-87b3-9ebd4557e7ed" 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="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FbFIuL61KAPAQOGyTjbUd%2Fimage.png?alt=media&amp;token=a92e2d8f-0978-4906-a782-16337639ddfe" alt="" width="225"><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2Fwcu7cWwWLdEBJkbfMG3x%2Fimage.png?alt=media&amp;token=5e08c03f-3622-4d03-9be9-d20ce3eb776d" alt="" width="375"><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FJX9kovQhpR7yV3Z3zRuR%2Fimage.png?alt=media&amp;token=c86227ee-35b1-4dee-89a3-078522d98a30" 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="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FZlUQycPDXpgZ3gawjYsG%2Fimage.png?alt=media&amp;token=8ddd8b48-3569-435a-8df9-e1da2f2a8650" 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="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FhzAzgdPOMNrAzkZrFzyU%2Fimage.png?alt=media&amp;token=2a8f9918-1835-4dfb-a877-1d7943368e51" 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="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FOjYlpeCpDtZDmIqTZABJ%2Fimage.png?alt=media&amp;token=39d8d120-eb7c-4843-9652-4cb3ace26c3f" alt="" width="375"><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2Fg0k4Ud11Go3naVfBhBmm%2Fimage.png?alt=media&amp;token=324f5c00-5162-4e4a-82ca-c5ff39dbc0b5" alt="" width="375"><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FT9q5Mk4udy43psbSNMKJ%2Fimage.png?alt=media&amp;token=5b45dca2-8e4e-4432-870e-8cc20c1fc81e" 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="https://1965679461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6ChFFAAPr98iDFraSOTh%2Fuploads%2FBXDpNk7854Fy9ykS1bdF%2Fimage.png?alt=media&amp;token=4f4bafaf-53ae-4979-8f88-f65848a6473b" alt="" width="262"><figcaption></figcaption></figure></div>

{% hint style="info" %}
You can view and edit your active limit orders anytime under [**Active Orders**.](https://docs.swoop.fun/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
