# Limit Order

{% hint style="info" %}
Ocean's **Limit Orders** let you automate your trades by setting predefined conditions to **buy or sell** a token when it reaches a specific **market cap, price, or profit target**.
{% endhint %}

## How to Set Up a Limit Order

{% stepper %}
{% step %}
Tap 📈 `Buy` from the Ocean Telegram bot’s main menu and paste the contract address of the token you want to buy.

<figure><img src="/files/7VRj9iVJpfN3GCvJldpg" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Tap 🚦 `Limit orders` it to set a limit order instead of a market order.\
\
Before continuing, confirm that you are in the wallet you want to trade with. You can change wallets by tapping the 💼 `Wallet` button.

<figure><img src="/files/ugaspLAxX5h5qFrl5TXv" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Define Your Buy Conditions

Tap 💰 `Buy amount`  to enter how much SOL you want to use in the trade.&#x20;

Tap ⏳ `Expiry`  to set how long the order should remain active (e.g., 30m, 12h).

<figure><img src="/files/OyXuGSU7QlkMnEyDBFuj" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Set the Trigger by setting a Price, Market Cap, or Percentage target.

* 💲 `Price` – Enter a target token price.
* 💲 `Market cap` – Set a market cap value that triggers the order.
* 💵 `Percentage` – Trigger based on price movement (up or down) from current value.

<figure><img src="/files/yuwnNgUuFynK4fgIRInW" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Configure Order Settings:

* Adjust ⛽ `Gas` and 💧 `Slippage` as needed.

Tap ⚙️ `Advanced features` to access deeper control over your trade execution. Here you can customize:

* ⚙️ `Buy Processor`: Choose between Jito, Node, or Merkle depending on your strategy.
* 🤖 `Auto Tip`: Enable or disable automatic bribe tips.
* 💸 `Tip`: Set a manual bribe (tip) to prioritize your order with validators.

<figure><img src="/files/7FUOP3XDna8Ho187TkpL" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Save & Deploy

* Tap 💾 `Save` to confirm and activate your limit order.
  {% endstep %}
  {% endstepper %}

Ocean will handle the rest and execute the trade once your conditions are met!


---

# 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.oceanbots.ai/telegram-bot-features/limit-order.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.
