> For the complete documentation index, see [llms.txt](https://docs.asterdexcorp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.asterdexcorp.com/trading/perpetuals/order-types/market-order-slippage-tolerance.md). Agents can also search and read this documentation through its [MCP server](https://docs.asterdexcorp.com/~gitbook/mcp).

# Market Order Slippage Tolerance

### Overview

Market Order Slippage Tolerance allows you to set the maximum price difference you're willing to accept when placing a Market Order.

When enabled, Aster automatically converts your Market Order into an Immediate-Or-Cancel (IOC) Limit Order using your selected slippage tolerance. If there isn't enough liquidity within your specified price range, any unfilled portion of the order will be cancelled.

***

## How It Works

You can set slippage tolerance using either:

* Price Amount
* Percentage

Aster calculates a limit price based on your selected method and submits the order as an IOC Limit Order.

The order will execute immediately against available liquidity within the calculated limit price. If the entire order cannot be filled, the remaining quantity will be cancelled automatically.

***

## Slippage Tolerance Types

#### By Amount

Set the maximum acceptable price difference as a fixed amount.

For example:

* Best Ask Price: 100 USDT
* Slippage Tolerance: 2 USDT

The maximum execution price for a buy order is:

100 + 2 = 102 USDT

For sell orders, the limit price is calculated using the current Best Bid.

***

#### By Percentage

Set the maximum acceptable price difference as a percentage.

For example:

* Best Ask Price: 100 USDT
* Slippage Tolerance: 1%

The maximum execution price for a buy order is:

100 × (1 + 1%) = 101 USDT

For sell orders, the limit price is calculated using the current Best Bid.

***

## Price Calculation

#### By Amount

Buy Order

Limit Price = Best Ask + Price Amount

Sell Order

Limit Price = Best Bid − Price Amount

#### By Percentage

Buy Order

Limit Price = Best Ask × (1 + Percentage)

Sell Order

Limit Price = Best Bid × (1 − Percentage)

***

## Slippage Tolerance Limits

#### By Amount

* Minimum: One tick size
* Maximum: Current Mark Price × Market Order Price Cap

#### By Percentage

* Minimum: 0.1%
* Maximum: Market Order Price Cap × 100%

***

## Important Notes

* Slippage Tolerance is available only for Market Orders.
* Market Orders with Slippage Tolerance are executed as IOC Limit Orders.
* Orders may be fully or partially filled depending on available market liquidity.
* Any unfilled quantity will be cancelled automatically.

***

## Frequently Asked Questions

#### What is slippage?

Slippage is the difference between the expected price of a Market Order and the actual execution price. It can occur when market prices change quickly or liquidity is limited.

***

#### Why wasn't my order fully filled?

If there isn't enough liquidity within your specified slippage tolerance, only the available quantity will be filled. Any remaining quantity will be cancelled.

***

#### Can my order be partially filled?

Yes. Orders may be partially filled if only part of the order can be executed within your specified slippage tolerance.

<br>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.asterdexcorp.com/trading/perpetuals/order-types/market-order-slippage-tolerance.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
