> For the complete documentation index, see [llms.txt](https://banana-gun.gitbook.io/banana-gun-solana/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://banana-gun.gitbook.io/banana-gun-solana/advanced-features/buy-limit-order.md).

# Buy Limit Order

Buy limit orders purchase a token when its market cap or price reaches a set target.

### How to Set a Buy Limit Order

<table data-header-hidden data-full-width="false"><thead><tr><th valign="top"></th><th align="center" valign="top"></th></tr></thead><tbody><tr><td valign="top"><ol><li>Paste the token's contract address (CA) or URL (e.g., Dexscreener) to open the <strong>Buy</strong> panel.</li><li>Click <strong>Setup Buy Limit Order</strong>.</li><li>Click <strong>Spend</strong> and enter the amount you want to spend on the order.</li><li>Click <strong>Active</strong> and set the order duration. </li><li>Select the buy button with the percentage change in market cap or token price that will trigger your order (e.g., -50%).</li><li>Wait for the <strong>Limit Order Set</strong> message. </li></ol><ul><li>View and manage pending buy limit orders from the <a href="#pending-buy-limit-orders-panel"><strong>Pending Buy Limit Orders</strong></a> panel.</li></ul></td><td align="center" valign="top"><img src="https://2721983577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbJwF8I0xl6xfT3mvMxHd%2Fuploads%2F8Ekf386mo57IadHD81bM%2FBuy%20order.gif?alt=media&amp;token=69d0b401-2fff-4f79-8b2d-96c7b6e0a0a9" alt="" data-size="original"></td></tr></tbody></table>

### Buy Limit Order Panel

This panel lets you configure a buy limit order and view its order information and settings.

{% tabs %}
{% tab title="Order Information" %}

<figure><img src="https://2721983577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbJwF8I0xl6xfT3mvMxHd%2Fuploads%2FfeHuLvQLkE6z6ZfBTz44%2Fimage.png?alt=media&amp;token=798f2516-6e95-4ca3-a237-9440281bff82" alt="" width="375"><figcaption></figcaption></figure>

1. **Order Type:** Displays whether the limit order is a buy or sell order.
2. **Cancel:** Cancels the pending limit order.
3. **Trigger Market Cap / Trigger Price:** The market cap or token price that triggers the order.
4. **Time Left:** The remaining time before the order expires.
5. **Executes In:** The countdown until the next price check.
6. **H/MC:** Highest market cap/token price reached since the order was created.
7. **L/MC:** Lowest market cap/token price reached since the order was created.
8. **Drawback:** Percentage decline from the highest market cap to the current market cap.
9. **Current Price / Market Cap:** Current market values for reference.
   {% endtab %}

{% tab title="Order Settings" %}

<figure><img src="https://2721983577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbJwF8I0xl6xfT3mvMxHd%2Fuploads%2FkxZIOKKIfg7gLv53rQZA%2Fimage.png?alt=media&amp;token=7e19fc9d-349b-4313-8184-69e31c07e857" alt="" width="375"><figcaption></figcaption></figure>

1. **Spend:** Amount of the selected currency you want to spend on the order.
2. **Active:** Set the duration of the limit order.
3. **Execute After:** Set a delay before the limit order can execute.
4. **Wallets:** Select the wallets to use for the buy limit order.
5. **Presets:** Select the preset to use (**Normal**, **Fast**, or **Insane**). Each preset uses different gas, MEV tip, and slippage settings.
6. **Buy Gas:** The gas you're willing to pay for buy orders. If unchanged, the default gas setting will be used.
7. **Mev Tip:** Set a tip to prioritize your transaction when **Anti-MEV** is on.
8. **Slippage:** Set the maximum price change (0–99%) you're willing to accept. 100% allows unlimited slippage.
9. **Currency:** Select the currency to use for buy orders.
10. **Market Cap:** Set trigger conditions based on a percentage or dollar change in market cap.
11. **Buy Buttons:** Set the percentage change required to trigger your limit order.
12. **Custom Market Cap:** Enter a custom market cap to trigger the order.
13. **Execute:** Creates the limit order with the selected settings.
    {% endtab %}

{% tab title="How to Update an Order" %}
Update the settings of an existing pending buy limit order.

<figure><img src="https://2721983577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbJwF8I0xl6xfT3mvMxHd%2Fuploads%2Fvl90ALAeKRhWAD3yIMrL%2Fbuy%20order%20update.gif?alt=media&amp;token=29ead181-e1e2-49a9-abcc-fe79818c608a" alt="" width="338"><figcaption></figcaption></figure>

1. Click the **Pending Orders** button in the start menu.&#x20;
2. In the **Pending Limit Orders** panel, click **Buy Limit Orders**, then click **Edit** beside the order you want to update.
3. Select the setting you want to change.
4. Select or enter a new value in the text box.
5. Click update.
6. The setting will update (e.g., **Custom Market Cap** set to **-30%**.
   {% endtab %}
   {% endtabs %}

### Pending Buy Limit Orders

This panel appears when you select **Pending Orders** from the start menu. It displays your pending buy limit orders and options to manage them.

<figure><img src="https://2721983577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbJwF8I0xl6xfT3mvMxHd%2Fuploads%2FPPrbBAmrLbjItMYeeA96%2Fimage.png?alt=media&amp;token=0b20a7dc-391d-4d6b-9ae0-6904f15e827f" alt="" width="375"><figcaption></figcaption></figure>

1. **Chain:** Displays the selected chain. Click to select another chain or use the arrows to view pending buy limit orders on other chains.
2. **Refresh:** Refreshes the list of pending buy limit orders.
3. **Token:** Opens the token's **Buy** panel.
4. **Edit:** Opens the order settings so you can modify the pending order.
5. **Cancel:** Cancels the selected pending order.
6. **Cancel All Pending Buy Limit Orders:** Cancels all pending buy limit orders on the selected chain.
