Limit Order

What is a Limit Order?
How to open a Limit Order
  1. Connect Wallet and Mint Tokens

  1. Choose the Market

  • Select the market where you want to exchange your tokens. For example, BTC-USDC, as shown in the screenshot.

  1. Select Order Type

  • Choose the type of order you want to create. In this tutorial, we will be using a Limit Order. Ensure that the "Limit" option is selected from the order type dropdown.

  1. Decide to Buy or Sell

  • Decide whether you want to buy or sell the base token. This can be done using the buy/sell switcher on the right side of the interface. Select "Buy" if you want to purchase the base token, or "Sell" if you want to sell it.

  1. Specify the Amount

  • Enter the amount of the base token you wish to exchange. You can manually input the amount or use the MAX button for a quick fill of the maximum available amount. Alternatively, you can use the slider to specify a percentage of your available funds.

    • Important: If you are providing ETH, ensure you leave enough for the transaction cost.

  1. Review Order Details

  • Check the order details, including the order size, price, and total amount. Make sure everything is correct before proceeding.

  1. Sign and Send Transaction

  • After reviewing your order, sign the transaction using your connected wallet and send it to the blockchain.

  1. Order Confirmation

  • Once the transaction is successfully processed, your order will be created and displayed in the order book.

Types of Limit Orders
  1. Good Till Cancelled (GTC): A limit order that remains active until executed or canceled. Often supported by API for long-term position holding.

  2. Immediate or Cancel (IOC): A limit order that must be executed immediately and fully or partially. The unfilled portion is canceled. Currently available via the SDK.

  3. Fill or Kill (FOK): A limit order that must be executed fully and immediately. If not possible, the order is fully canceled. Currently available via the SDK.

Last updated