> For the complete documentation index, see [llms.txt](https://docs.ashswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ashswap.io/getting-started/understand-ashperp/ashperp-terms/spread.md).

# Spread

## Fixed Spread

The implementation of spreads serves to deter the manipulation of oracles, enabling the exchange to include tokens with lower market caps.&#x20;

Note that the spread differs across each trading pair, with those having lower liquidity, particularly smaller pairs, experiencing larger spreads. Consequently, using an NFT is particularly more effective for these types of pairs.

## Dynamic Spread

Dynamic Spread is an additional charge over the fixed spread for a pair, if it exists. This variable spread depends on factors such as the open interest in the pair, the size of the trade being executed, and whether the trade is a long or a short.&#x20;

The primary aim of this parameter is to mitigate the risk of manipulation in spot oracle prices, thus facilitating the inclusion of pairs with lower liquidity than previously possible.&#x20;

The impact of this price change will vary for each pair and will differ based on the trade direction, whether it's a long or a short. For each trading pair, there are two key parameters to consider: the 1% depth above market price for long positions, and the 1% depth below market price for short positions.

$$
Dynamic Spread(%)=\frac{OI(long/short)+\frac{NewTradeOI}{2}}{1%Depth(above/below)}
$$

This means that the initial price for any trade will match the current market price of the pair. However, this price might be slightly increased for trades aiming to buy (longs) or decreased for trades aiming to sell (shorts), depending on how many people are trading that pair.&#x20;

Also, it's important to remember that this extra price adjustment (known as price impact or spread) doesn't apply when you're closing a trade.

## Slippage

* Due to market volatility, the execution price might largely differ from the market price at the time a market order is placed. To address this concern, traders have the option to establish a slippage threshold for their market orders to mitigate significant disparities between the intended and actual execution prices.
* For example: setting a slippage of 1% means when the oracle price has been filled and the execution price (spread included) is larger than the market price when the order was initiated by 1% or more, the order will not be fulfilled.

## Max Spread

* Traders can also configure maximum spread for their limit/stop orders to prevent similar price deviation.
* For example: setting a max spread of 1% means when the oracle price has been filled and the execution price (spread included) is larger than the determined limit/stop price by 1% or more, the order will not be fulfilled.

<details>

<summary>What are the spread for asset pairs on AshPerp?</summary>

A fixed spread of 0.04% is applied for BTC/USD and ETH/USD. Dynamic spread is applied for other asset pairs.

</details>


---

# 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.ashswap.io/getting-started/understand-ashperp/ashperp-terms/spread.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.
