# Market

Market orders execute immediately at the current market price. Use them when speed matters more than price precision.

***

## 🟢 Buy

To place a **Market Buy** order, follow these steps:

1. **Find your token** - Search by ticker or paste the contract address in the search bar. You can also click any token directly from [Trenches](https://github.com/PhoenixDevLab/shotgun-gitbook/blob/master/.gitbooktwo/shotgun/swap/market/\(https:/app.shotgun.fun/trenches\)/README.md).
2. **Select the Buy tab** - Ensure the **Buy** tab is highlighted in the order panel on the right side of the token page.
3. **Set the order type to Market** - Select **Market** to execute at the current price immediately.
4. **Enter the amount** - In the **Total** field, enter the amount of SOL you want to spend. Use the quick-select buttons (0.1, 0.2, 0.5, 1 SOL) for fast entry.
5. **Review transaction settings** - Confirm your **Priority Fee**, **Slippage**, and **MEV Protection** settings at the bottom of the panel before submitting.
6. **Confirm Buy** - Click the green **Buy** button to execute the order.

{% hint style="info" %}
This action will **buy** the token immediately at the current market price. The final token amount received depends on available liquidity and your slippage setting.
{% endhint %}

<figure><img src="/files/IKOy87Jqdpj8ILKp3VZj" alt="" width="314"><figcaption></figcaption></figure>

***

## 🔴 Sell

To place a **Market Sell** order, follow these steps:

1. **Open the token page** - Navigate to the token you want to sell. Your current position (amount held and PnL) is shown at the top of the order panel.
2. **Select the Sell tab** - Ensure the **Sell** tab is highlighted in the order panel.
3. **Set the order type to Market** - Select **Market** to sell at the current price immediately.
4. **Specify the amount** - Enter the number of tokens you wish to sell, or use the quick-select percentage buttons (25%, 50%, 75%, 100%) to sell a portion or your full position.
5. **Review transaction settings** - Check your **Priority Fee** and **Slippage** at the bottom of the panel.
6. **Confirm Sell** - Click the red **Sell** button to execute the order.

<figure><img src="/files/guIOqJNZoUlxyBPqN1eP" alt="" width="314"><figcaption></figcaption></figure>

***

## ⚙️ Transaction Settings

Before placing any market order, review these three settings:

| Setting            | What it does                                                                                                                                                                                                                                           |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Priority Fee**   | Extra SOL paid to Solana validators to speed up your transaction during network congestion. Higher fee = faster confirmation.                                                                                                                          |
| **Slippage**       | The maximum % price movement you'll accept between submitting and executing your trade. Too low = failed transactions; too high = worse fill price.                                                                                                    |
| **MEV Protection** | Routes your transaction through private channels to prevent sandwich attacks - bots buying before you and selling immediately after. Check the minimum MEV bribe amount shown in the top-right corner of Shotgun and set your protection fee above it. |

{% hint style="info" %}
MEV Protection is only necessary for **buy** transactions. It is not required for most sells.
{% endhint %}


---

# 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.shotgun.fun/shotgun/swap/market.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.
