> For the complete documentation index, see [llms.txt](https://docs.boba.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boba.xyz/agents/boba-agents/core-capabilities/spot-trading/market-orders.md).

# Market Orders

***

### Overview

Market orders buy or sell tokens instantly at the current market price. They prioritize speed of execution over price—your order fills immediately against available liquidity.

**When to use market orders:**

* You need immediate execution
* Price slippage is acceptable for your trade size

**When to consider limit orders instead:**

* You want a specific entry/exit price
* The token has thin liquidity
* You're trading larger sizes where slippage matters

***

### Example Prompts

Here are natural language prompts that trigger market orders:

| Prompt                                        | Interpretation                                   |
| --------------------------------------------- | ------------------------------------------------ |
| "Buy $500 of BONK on Solana"                  | Market buy $500 USD worth of BONK on Solana      |
| "Sell $200 worth of WIF on Solana"            | Market sell $200 USD worth of WIF on Solana      |
| "Buy $1000 of BRETT on Base"                  | Market buy $1000 USD worth of BRETT on Base      |
| "Ape $50 into this token on Solana: 7GCih..." | Market buy $50 USD of token at address on Solana |
| "Dump all my POPCAT on Solana"                | Market sell 100% of POPCAT holdings on Solana    |
| "Sell half my DEGEN on Base"                  | Market sell 50% of DEGEN balance on Base         |
| "Buy $2500 of JUP on Solana with 2% slippage" | Market buy $2500 USD of JUP with custom slippage |

***

### Slippage Protection

Market orders automaticly assume slippage amount unless other specified. If the price moves beyond your tolerance during execution, the transaction reverts.

**Recommended Slippage by Token Type**

Based on liquidity depth and volatility characteristics:

<table><thead><tr><th>Token Category</th><th>Pool Liquidity</th><th width="187">Recommended Slippage</th><th>Notes</th></tr></thead><tbody><tr><td><strong>Stablecoins</strong> (USDC, USDT)</td><td>$10M+</td><td>0.1% - 0.5%</td><td>Pegged assets have minimal price movement</td></tr><tr><td><strong>Major tokens</strong> (SOL, ETH, BTC)</td><td>$10M+</td><td>0.5% - 1%</td><td>Deep liquidity, stable pricing</td></tr><tr><td><strong>Established altcoins</strong> (JUP, RAY, BONK)</td><td>$1M - $10M</td><td>1% - 2%</td><td>Moderate liquidity, some volatility</td></tr><tr><td><strong>Mid-cap tokens</strong></td><td>$100K - $1M</td><td>2% - 5%</td><td>Thinner liquidity, higher price impact</td></tr><tr><td><strong>Low-cap / new tokens</strong></td><td>$10K - $100K</td><td>5% - 10%</td><td>Significant price impact on trades</td></tr><tr><td><strong>Micro-cap / launches</strong></td><td>&#x3C;$10K</td><td>10%+</td><td>Extreme volatility, high risk</td></tr></tbody></table>

{% hint style="warning" %}
**Warning:** Tokens requiring >10% slippage to trade may have built-in transfer taxes or be potential scams. Always verify token contracts before trading.
{% 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.boba.xyz/agents/boba-agents/core-capabilities/spot-trading/market-orders.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.
