StellaSwap
  • 🖐️Intro
  • DEX CORE
    • StellaSwap V4
      • ⚡Concentrated Liquidity
      • Automated Earnings
      • Telegram Position Tracker
    • Cool Tools
    • 🌊Liquid Staking
      • Contracts
      • Audit
  • Tokenomics
    • STELLA Token
  • ❓How-To Guides
    • Liquidity Staking
      • Add Liquidity (Manual)
      • Add Liquidity (Auto)
      • Create Limit Orders
      • Create Community Pool
      • Migrate Liquidity From V2 to Pulsar
      • Manage Out of Range Position
    • Cross-Chain Swap
    • Wallet & Network
      • Create and Fund Polkadot .js Wallet
      • Create Metamask Wallet
      • Connect Metamask to Moonbeam
      • Token Address List for Manual Import
      • Moonbeam Block Explorer List
    • Native Transfer (XCM)
      • How to Get Phala (PHA.xc) Token On Moonbeam
      • How to Get Pendulum (xcPEN) Token On Moonbeam
      • How to Get ZTG Token On Moonbeam (xcZTG)
      • How to Get Bifrost (BNC) Token On Moonbeam
      • How to Get Bifrost Voucher FileCoin (xcvFIL) Token On Moonbeam
      • How to Send Polkadot (DOT) to Moonbeam
      • How to Get INTR & iBTC On Moonbeam
      • How to Get Centrifuge (CFG) Token On Moonbeam
      • How to Get Acala Dot (xcLDOT) Token on Moonbeam
      • How to Get Astar Token on Moonbeam
      • How to Get Native USDT (xcUSDT) On Moonbeam
      • How to Send USDT From Binance To Moonbeam
      • How to Send INTR & iBTC to Moonbeam (XCM)
  • Resources
    • Contract Addresses
    • General FAQ
    • Security
      • Audit
      • Bug Bounty
    • Team
  • Developers
    • Smart Contracts
    • Swap SDK
  • Dev Resource
    • API Reference
    • Pulsar V3 Contracts
    • Flashloan (V3)
  • 🌎Community
    • Blog
    • Discord
    • Github
    • Twitter
    • Reddit
Powered by GitBook
On this page
  1. How-To Guides
  2. Liquidity Staking

Create Limit Orders

PreviousAdd Liquidity (Auto)NextCreate Community Pool

Last updated 9 months ago

Pulsar's robust infrastructure now allows you to add an important tool in your trading arsenal; limit orders.

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.

Out-of-Range (OOR) is Your Friend

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".

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.

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.

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.

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.

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.

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

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.

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.

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

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

That’s it 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.

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

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

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.

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.

The deposit ratio should be 100% in GLMR.

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

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.

Creating limit orders entail the use of deliberately being .

❓
OOR