# Market Orders

A **market order** executes immediately against the best available resting orders on the book. Use it when you want instant execution and don't mind paying the prevailing price.

{% hint style="info" %}
A market order takes the **best available prices currently on the book**. In thin markets it may walk through several price levels — see [Slippage](#slippage).
{% endhint %}

## Buy vs Sell

The input differs:

|                   | What you enter                  | What you receive                          |
| ----------------- | ------------------------------- | ----------------------------------------- |
| **Buy (Market)**  | **USD amount** (e.g. $50)       | Shares ≈ amount ÷ estimated average price |
| **Sell (Market)** | **Number of shares** (e.g. 100) | USD ≈ shares × estimated average price    |

The order panel updates the estimated average price in real time based on current book depth.

## Buy Example

You want to bet $50 on YES in a market trading at 60¢:

1. Select **YES → Buy → Market**
2. Enter **$50**
3. Panel shows:
   * Estimated average price ≈ 60¢
   * Shares ≈ 50 ÷ 0.60 ≈ **83.33**
   * **To Win** ≈ **$83.33** if YES wins, or **$0** if it loses *(total payout — **includes your $50 stake**; net profit on win ≈ $33.33)*
   * **Total** = Order Value + Est. Fee — the exact amount leaving your wallet
4. Click **Buy** → matches against resting asks

## Sell Example

You want to sell 100 YES shares:

1. Select **YES → Sell → Market**
2. Enter **100** (or use the **25% / 50% / Max** quick buttons)
3. Panel shows:
   * Estimated average price
   * **You receive** — net USDC credited after the sale
4. Click **Sell** → matches against resting bids

## Slippage

If your order is larger than the liquidity at the best price, it walks up (or down) the book — you'll get an average price worse than the top quote. The panel estimates this in real time.

Example — you buy **250 shares**, but the best ask only has 100 resting. Your order walks up the book:

<figure><picture><source srcset="/files/0XF1IiweGhImyFfcZaEq" media="(prefers-color-scheme: dark)"><img src="/files/m6peT7CM2P3ZLr38llj5" alt=""></picture><figcaption></figcaption></figure>

The deeper your order walks, the worse your average. This is **slippage**.

{% hint style="warning" %}
In thin markets a large market order can move the price significantly. If you care about execution price, use a [Limit Order](/markets-and-trading/limit-orders.md) instead.
{% endhint %}

## Partial Fills

If the book can't fully absorb your market order:

* The portion that matched executes immediately
* The unfilled portion is cancelled — market orders never rest on the book

## Related

* [Limit Orders](/markets-and-trading/limit-orders.md) — control your execution price
* [How Orders Match](/markets-and-trading/matching-logic.md) — how your order walks the book


---

# 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.probly.com/markets-and-trading/market-orders.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.
