# Create Limit Orders

{% tabs %}
{% tab title="Overview" %}
Pulsar's robust infrastructure now allows you to add an important tool in your trading arsenal; limit orders.&#x20;

Similar to an orderbook system of centralized exchanges (CEXs), limit orders allow you to buy/sell an asset at a specific predetermined price, allowing the order to be filled at an indeterminate time in the future.

With limit orders on StellaSwap's V3, users can now create limit orders decentrally by providing a single asset as liquidity within a specific range.

<figure><img src="https://2469068479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk79kvXbQmvjLmP78Scbp%2Fuploads%2FuLv3XL12IEM2eAmOksmn%2Fnew-movie%20(1).gif?alt=media&#x26;token=0103f4f7-1174-4de9-a170-3492469a45f4" alt=""><figcaption></figcaption></figure>

### Out-of-Range (OOR) is Your Friend

Creating limit orders entail the use of **deliberately** being [OOR](https://docs.stellaswap.com/product/pulsar-concentrated-liquidity/faq/what-is-out-of-range).&#x20;

Previously, a normal liquidity position goes OOR when the market price falls outside of your initial price range that you set when adding liquidity.

> For example, if you provided liquidity for GLMR-USDC pool at a range of $0.30 - $0.60 at the start and after a few days, the market price goes to $0.70, then your position is considered "*Out-of-Range*".&#x20;

Although *accidental* OOR isn't good (since you need to amend your positions), *intentional* OOR for limit orders serves a vital tool in allowing you to mitigate your risks.

With this new enhancement, you could create an OOR position from the outset. All you need is a single asset! While you would not be getting any rewards when you are out of range; there is an important function enabled by this OOR position which are limit orders.

### What's a Limit Order?

In centralized trading, a limit order is a specified price for selling an asset that would only be triggered once the asset reaches set price in the order.&#x20;

> In simple words, creating a conditional trade that only executes if the price for an asset reaches the predetermined point. An example is creating a limit buy order for BTC at $40,000; your buy order **only executes** if BTC;s price reaches $40,000.

Since a DEX is fundamentally different compared to a traditional orderbook system, a new way to achieve the same outcome of limit orders need to be created.&#x20;

> Example: Price for 1 GLMR is now $0.26. If I'm holding USDC and is keen to buy GLMR only below $0.25, I can do so by providing OOR to the pair and set my range to below $0.25. Therefore, my liquidity would only be utilized once it is in range. The best part is that I would only be providing USDC since my OOR is below the current price!

The opposite can also be done, where you could provide GLMR and only **sell** it at a certain price higher than the prevailing market price; AKA sell limit order.&#x20;

> Example: You could create a position on GLMR-USDC pair that only sells GLMR for at least $0.3 by setting the range to that amount. In this case you would only be providing GLMR tokens when depositing liquidity.
> {% endtab %}

{% tab title="Buy Limit Orders" %}

### How To Create a Buy Limit Order with OOR

(Context: Buying GLMR below market price)

**Step 1:** On Pulsar click + New Position button, or Deposit on desired pool.

<figure><img src="https://lh5.googleusercontent.com/YF17GDbBZLYdywiGtcljmlMubVt3a8tqswG7V-5TtZ2elFnQvnlQVOEg_82--4GjjExSbiXirBMghZJgwQlbE9-_uH7jZNwmt873QqsyNUCCa57lwzYCnZ4zUVnw5PL-jl8IZR2OH0blNWQeW6YG4s4" alt=""><figcaption></figcaption></figure>

**Step 2:** On the `Add Liquidity` page, select your pair and choose **expert** on `Select Range` to set a custom OOR position.

<figure><img src="https://lh5.googleusercontent.com/1h3JbtOBDXHKLZbTWhPzmAFVRQD_tMvXXRqJ8bxcT3QlPGrV_kppbt-fJhPrpnXajyF3JHOIKS2CUUH6cm0sR9EB5XnoaxhLJd2j00Tq5e9SEBmC2TnLIgxUFScmRW1pGl4fqU2HtXAal8LY3Djnstc" alt=""><figcaption></figcaption></figure>

**Step 3:** Set your range manually. The current price for GLMR when making this tutorial is 0.266 USDC. Therefore, we will select a lower `max price`.&#x20;

<figure><img src="https://lh4.googleusercontent.com/fzQRSMQtzAYFP31uRT1N3riMbKlcGk0_lTtCdQodKHm-ID85f3aEE3qL_LqIfu6nYdhyDz4UqMH3gwkp3xgpB2KcxOvY1Xw4TcvwI51jzKGVZmmio1EWMNYviQAYViWqpdfQynI6ARJRF7K0yHRRf5k" alt=""><figcaption></figcaption></figure>

**Step 4:** Input the amount you want to deposit. Since we are going below the current price, we will only be able to deposit USDC. The GLMR amount field won’t be available to input.

<figure><img src="https://lh4.googleusercontent.com/frEvW4uLQw3z05d8DAssrwR2DeFjHr1gvqArmz5FwkDstqySNUlvXTTlDZ4pw719Kr9oQ9Gs_QUbaZ23uZE3NLDxr5OS6p-WF2_Px9HczUdMs11iHnDlq9VAy3ky5f8zjLgebeX2M8O2E1SBfiSjwDk" alt=""><figcaption></figcaption></figure>

You should see the deposit ratio to be 100% in USDC.

<figure><img src="https://lh6.googleusercontent.com/Kwo06Yxo-NzVRtadJXdo2enhbEwgB_d-EwC-fHVu-9j08CGwJ02vSIde_g8UDs-aVoaiU08cRcQevda1Q_-ZSctNmR0eyoAlUG4VFHR0Al_0VQ3s7zvOvPOUw7POvj1-r87G6MT58XnNIVrf8ouU5T8" alt=""><figcaption></figcaption></figure>

**Step 5:** Click on Review & Confirm to proceed, double check information and Confirm Supply

<figure><img src="https://lh3.googleusercontent.com/xWcRCymPyzstLO0gV-zjeyCOdNTXdNWeyz3rrJmdOaX-hz3qSMClgsSCbPVFrJvEfOvU8ZgJew1ijPbH6HHN96pmpfOYL0KFsFaJvy8F8orfNoVAzJiWgzWdb4MH8boUz4T155thtloidCI-WjN5Imw" alt=""><figcaption></figcaption></figure>

That’s it you now have OOR limit order position that will be triggered once price hits your set range.&#x20;

**Note:** While your position is OOR you will not be earning trade or farm rewards. However, once it gets in range you will start earning, so you could stake your OOR position in the farm.

<figure><img src="https://lh5.googleusercontent.com/Jv_wfv-e86YSZ42UUBFHPZnoKfv48-uNNZLeP10o8aBf3c2BuKo61w18FVmexzE4u52ERVdIqSc9CUz5JdGDsrz3tQu3dWupEaGo7yB37D17Cx28qapQBcb1miqmfH80V95o8ObIu_3X7DgUz2HZUhk" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Sell Limit Orders" %}

### How To Create Sell Limit Order on Pulsar

(Context: Selling GLMR above market price)

**Step 1:** On Pulsar click + New Position button to create new position

<figure><img src="https://lh5.googleusercontent.com/YF17GDbBZLYdywiGtcljmlMubVt3a8tqswG7V-5TtZ2elFnQvnlQVOEg_82--4GjjExSbiXirBMghZJgwQlbE9-_uH7jZNwmt873QqsyNUCCa57lwzYCnZ4zUVnw5PL-jl8IZR2OH0blNWQeW6YG4s4" alt=""><figcaption></figcaption></figure>

**Step 2:** On the add liquidity page, select your pair and choose expert on Select Range to set a custom OOR position.

<figure><img src="https://lh5.googleusercontent.com/1h3JbtOBDXHKLZbTWhPzmAFVRQD_tMvXXRqJ8bxcT3QlPGrV_kppbt-fJhPrpnXajyF3JHOIKS2CUUH6cm0sR9EB5XnoaxhLJd2j00Tq5e9SEBmC2TnLIgxUFScmRW1pGl4fqU2HtXAal8LY3Djnstc" alt=""><figcaption></figcaption></figure>

**Step 3:** Set your range manually. The current price for GLMR when making this tutorial is 0.265 USDC. Therefore, we will select a higher min price.

<figure><img src="https://lh4.googleusercontent.com/pcG1wLcDSwOD5nUfW5lWtnZaZpulF8YpenAgzDZBeCIMNEMPD34N9u1KmG4Y9rPGGbca6Hbyv8RgPO8zhUiLr5fTkorm4zZefrTEYByoytg5tBr_SRZaq7LgzP3m30iDDfECgqWDawcvuclZ8GKdn0M" alt=""><figcaption></figcaption></figure>

**Step 4:** Input the amount you want to deposit. Since we are going above current price, you will only be able to deposit GLMR. The USDC field will not be available to select.

<figure><img src="https://lh3.googleusercontent.com/BlU1uENJcHH9K-26qLyAHtp6PYZjfEDPEtPu6cC3OBsM0iqA7lvrD1Tzp0Gecam3tYm83qTxSmm--fM9zkPNQFa0RymbHF6ecqOM77UpYFyPMNjVQzNsUNkNWm95jtkJPVXIjbfBE_To_cs83coOjJc" alt=""><figcaption></figcaption></figure>

The deposit ratio should be 100% in GLMR.&#x20;

<figure><img src="https://lh3.googleusercontent.com/uB5JRK5EmMibbuDMPBzb7lt7LJnYHRA_SbixJ9wb66U2V65VMGGrT_o8RuzhhIis2J181kE_-5Tl8Y6rcZnSGzGJAX_zkrCLmJqnTDaQcJHKY06cn5NFQwecaQpuG9msrmtVUL2KnC4413Lm6yfSTVk" alt=""><figcaption></figcaption></figure>

**Step 5:** Click on Review & Confirm to proceed, double check information and Confirm Supply

<figure><img src="https://lh5.googleusercontent.com/Dp-0JCe3hHwKsa_4iA4kvseicYdum_pyNiGGcEg1DwllGKh8b1m73nOFBfe25JKJMtrbtwRt0wwpzObIXH9Y1GeLZbXtT8esF2AfJVzUK98RG0ZeImEaddbKkrgqMehL0hCdAJjkuN2BSTspGiLLBcg" alt=""><figcaption></figcaption></figure>

You now have OOR limit order position that will be triggered once price hits your set range!

**Note**: while your position is OOR you will not be earning trade or farm rewards. However once it gets in range you will start earning, so you could stake your OOR position in the farm.

<figure><img src="https://lh3.googleusercontent.com/pHT7j17rGkG2HRfc-bvCdQk3UNjcL6MfOTHTByzC4MGtuteLbwksSeelo6UDxEaBKJeAHY1Csf-oLQjumESIjbuWBOZzSjMj850sQBYq6S38Jw5RgCBWACqofmSh_gNcdKtGPv5VcUR5yR73bL6H1G4" alt=""><figcaption></figcaption></figure>

<br>
{% endtab %}
{% endtabs %}
