> For the complete documentation index, see [llms.txt](https://docs.aftermath.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aftermath.finance/trade/limit-orders.md).

# Limit Orders

Set the exact price you wish your trade to execute at

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmeKfXaQnIP3bbI1AdlVX%2Fuploads%2F8CIjTXCJSGATZzeFDANC%2FLimitOrders.mp4?alt=media&token=74a82d1f-ce84-40b5-9a7d-0d31faf16bb6>" %}

Limit Orders let you set the price at which you buy or sell an asset. For example, if the current price of SUI is $2.50, but you would like to purchase SUI if the price falls to $2.40, you can do so with a Limit Order. To create a Limit Order:

<figure><img src="https://3284144787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmeKfXaQnIP3bbI1AdlVX%2Fuploads%2Fgit-blob-3fd9d995a59e29b8da3216cb2ca63388f002ad23%2Flimit-order-card.png?alt=media" alt=""><figcaption><p>Limit Order interface</p></figcaption></figure>

1. Open Limit Orders from the Spot menu in the menu bar at the top of the screen
2. Choose which asset you would like to sell (i.e. USDC), and which asset you would like to purchase (i.e. SUI)
3. Enter the amount of chosen asset you would like to sell. This amount will be reserved while your Limit Order is pending and you will not be able to access the funds unless you cancel the order.

The current exchange rate will display once you enter an amount you wish to sell. This is the amount you would receive if you were to swap right now. Below, a field labeled Custom allows you to enter the price at which you wish to purchase the asset. The Exchange Rate you enter here should be greater than the Market Exchange Rate, displayed below. This means that you are setting a Limit Order to purchase the asset at a more favorable rate.

<figure><img src="https://3284144787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmeKfXaQnIP3bbI1AdlVX%2Fuploads%2Fgit-blob-2ec4f8d13c8dcedf32f8554cd0610d7a6e8668b5%2Flimit-price-custom.png?alt=media" alt="" width="375"><figcaption><p>Limit Price set above the market rate</p></figcaption></figure>

You can also toggle the direction of the Exchange Rate by clicking the arrows. For example, if you prefer to think in terms of 1 SUI = X USDC rather than 1 USDC = Y SUI, click the arrows to switch the direction.

<figure><img src="https://3284144787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmeKfXaQnIP3bbI1AdlVX%2Fuploads%2Fgit-blob-fd73debcbcfa0d8997bf585748b3ff479040dc86%2Flimit-price-flipped.png?alt=media" alt="" width="375"><figcaption><p>Toggle direction of Exchange Rate by clicking the arrows</p></figcaption></figure>

4. Set the price you would like to purchase the asset at by typing it into the Custom field. This is the price at which your Limit Order will be placed.

After setting the price, you can set a few more options. The first is a Stop Loss. A Stop Loss will execute your trade if the price moves in an unfavorable direction. For example, say you wish to buy SUI at a better price, so you set a Limit Order. Rather than decreasing, the price of SUI suddenly increases. You may wish to purchase it anyway, before it rises even more. You can use a Stop Loss to do this. The value you enter for your Stop Loss should be less favorable than the current Market Exchange Rate.

<figure><img src="https://3284144787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmeKfXaQnIP3bbI1AdlVX%2Fuploads%2Fgit-blob-6ed496d076c4e98555cdff858fdedfc1c1f8dcf3%2Flimit-stop-loss.png?alt=media" alt="" width="375"><figcaption><p>Stop Loss enabled</p></figcaption></figure>

You can also set your Limit Order to expire after a certain duration if it is not filled, and send the purchased asset to a different address than the one from which you created the order.

When the parameters are set, click Create Order and approve the transaction in your wallet. You will then see your Limit Order appear under Active Limits, where you can review your order or cancel it if desired. Once the order executes or expires, it will appear under the Past Limits tab.
